Introduction to Qt

3,374 views

Published on

Describe Qt platform to develop mobile application targeted to NOKIA handset

Published in: Technology
0 Comments
7 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,374
On SlideShare
0
From Embeds
0
Number of Embeds
217
Actions
Shares
0
Downloads
0
Comments
0
Likes
7
Embeds 0
No embeds

No notes for slide
  • One simple to install package is all you need to get started. No complicated setup, just connect your devices and your environment is completeFind everything you need to go from app concept to fully tested, ready to deploy app in one place — no extra SDKs to install.Powerful, intuitive tools, such as Qt Designer and on-device debugging, will accelerate you through your development. Think it, do it, it's that easy. Whether you use Qt Designer or hand code in JavaScript-like QML, with Qt Quick you will deliver rich, interactive UIs faster than you ever thought possible.Forget long complicated programs, the power of the Qt APIs lets you do more with less. Need to know a location or send a message? The new Qt Mobility APIs are built right in. Want more customers from less coding effort? With the Qt SDK 1.1 and the power of Qt you can quickly create applications for Symbian, Maemo, and MeeGo devices.
  • Find out how your app will work on any Qt enabled device quickly and easily. No need for complex device emulators, just let the Qt SDK 1.1 do the workWith Qt Simulator you can create test data, including dynamic data created with scripts, and simulate device states. On-computer testing has never been so complete. Compile your Qt app to any platform from any computer. With full reporting and click-into-code compiler feedback, the Remote Compiler enables developers using Linux or Apple Mac computers to target Symbian.Symbian apps no longer need to bundle the full Qt framework within their SIS files. Smart Installer downloads Qt and Open C/C++ components as the app is installed. With signing done by the Ovi Store, distribution of Qt apps for Symbian is now even easier.
  • Perbedaan SDK inidapatdilihatpadagambar 3. Untukkeperluan development, penulismenyarankanpembacauntukmengunduh Nokia Qt SDK karenadidalamnyatersediaQt Simulator sehinggawalaupunkitatidakmempunyaperalatan mobile/handphonekitatetapdapatmenjalankanaplikasitersebutmelaluiQt simulator. Pembacadapatmenggunduh Nokia Qt SDK padaalamat
  • Deskripsiantarmuka :Mode edit : membuat, edit dannavigasikode : dilengkapidengan syntax checking, code completion,indikatorkesalahan…Mode desain : drag & drop programmingMode debug : debug,breakpoint,simulatr (maen2 di simulator,rotate)Mode proyek : add moduleBantuanBuild HelloWorld
  • 2. Signal & SlotEvent-based….(user,timer,network)Signal -> menandakansesuatutelahterjadiSlot -> fungsi yang dipanggilketikasuatusinyalterjadiSignal dan slot digunakanuntukberkomunikasiDEMO : halaman 53
  • MekanismeygmemungkinkanAndamenyesuaikantampilan widget. Konsep ,terminologidansintakssangatmiripdengan CSS
  • 1. pilih start->Nokia Qt SDK->Symbian->Qt for Symbian Command Prompt2. masukke folder manakakaknarofilenya..saran sayasebaiknya folder NihonGoditaro di folder NokiaQtSDK->Symbian->SDK biargaadatuhmuncul error EPOCROOT segala3. setelahituketik : qmake4. enter5. tunggubentar, hasilnyaadalahmasukke line baru6. setelahselesaiketik : make release-gcce7. enter8. trusdiprosestuhpanjangdanaga lama9. hasilnyasih line barulagi10. trusketik : make sis11. enter12. ntarada info suksesmembuat sis, namafilenyakalogasalahnihongo.sis13. trus .sis itudideploydeh di HP14. nah pas deploy ke HP janganlupa copy file qt_installer.sis & qtmobility.sisdari folder NokiaQtSDK->Symbian->sis kehapenyajuga, trus tiga2nya diinstalldeh..
  • 2. Signal & SlotEvent-based….(user,timer,network)Signal -> menandakansesuatutelahterjadiSlot -> fungsi yang dipanggilketikasuatusinyalterjadiSignal dan slot digunakanuntukberkomunikasiDEMO : halaman 53
  • The Notifications API lets you add real-time push notifications to your client applications running on Nokia devices. It includes a Service API, which provides access to the Nokia Notification Server through an HTTP REST interface, as well as a Client API, which allows applications on the device to register and receive notifications from the Nokia Notification Server. The Client API is available for Qt on Symbian and MeeGo devices.
  • 1.Cara pakeQt2. Signal & Slot3.
  • Introduction to Qt

    1. 1. Developing Mobile Applicationwith QT<br />Seminar UNRI<br />12 May 2011<br />Puja Pramudya<br />puja.pramudya@gmail.com<br />http://pujalabs.net<br />
    2. 2. I’m home<br />
    3. 3. about.me/puja.pramudya<br /><ul><li>ebook author
    4. 4. mobile application developer</li></li></ul><li>The “Big” Picture<br />
    5. 5. What is Qt ?<br />“Qt, is a cross platform development framework written in C++”<br />
    6. 6. Where is Qt used?<br />
    7. 7. Where is Qt used?<br />
    8. 8. The Purpose of Qt<br /><ul><li>Cross platform applications built from one source
    9. 9. Builds native applications with native look and feel
    10. 10. Easy to (re)use API, high developer productivity, openess, fun to use</li></li></ul><li>Desktop target platforms<br /><ul><li>Windows
    11. 11. Mac OS X
    12. 12. Linux/Unix X11</li></li></ul><li>Embedded target platforms<br /><ul><li>Windows CE
    13. 13. Symbian
    14. 14. Maemo
    15. 15. Embedded Linux
    16. 16. Direct framebuffer access</li></li></ul><li>What is Qt?<br /><ul><li>C++ framework – bindings for other languages
    17. 17. Python, Ruby, C#, etcetera
    18. 18. Original for user interfaces – now for everything</li></ul>Databases, XML, WebKit, multimedia, networking, OpenGL, scripting, non-GUI...<br />
    19. 19. What is Qt?<br /><ul><li>Qt is built from modules
    20. 20. All modules have a common scheme and are built from the same API design ideas</li></ul>QtCore<br />QtGui<br />QtOpenGL<br />Phonon<br />QtXml<br />QtWebKit<br />QtNetwork<br />QtOpenVG<br />QtXmlPatterns<br />QtSql<br />QtScript<br />QtMultimedia<br />QtSvg<br />
    21. 21. What is Qt?<br /><ul><li>Qt extends C++ with macros and introspection
    22. 22. All code is still plain C++</li></ul>foreach (int value, intList) { … }<br />QObject *o = new QPushButton;<br />o->metaObject()->className(); // returns ”QPushButton”<br />connect(button, SIGNAL(clicked()), window, SLOT(close()));<br />
    23. 23. Commercial and Open Source<br /><ul><li>LGPL – free
    24. 24. Your application can be open or closed
    25. 25. Changes to Qt must be fed back to the community
    26. 26. GPL – free
    27. 27. Your application must be open
    28. 28. Changes to Qt must be fed back to the community
    29. 29. Commercial – costs money
    30. 30. Your application can be closed
    31. 31. Changes to Qt can be kept closed</li></li></ul><li>Hello World<br />
    32. 32. Hello World<br />#include <QApplication><br />#include <QLabel><br />int main( int argc, char **argv )<br />{<br /> QApplication app( argc, argv );<br /> QLabel l( "Hello World!" );<br /> l.show();<br /> return app.exec();<br />}<br />
    33. 33. Hello World<br />#include <QApplication><br />#include <QLabel><br />int main( int argc, char **argv )<br />{<br /> QApplication app( argc, argv );<br /> QLabel l( "Hello World!" );<br /> l.show();<br /> return app.exec();<br />}<br />
    34. 34. Hello World<br />#include <QApplication><br />#include <QLabel><br />int main( int argc, char **argv )<br />{<br />QApplication app( argc, argv );<br /> QLabel l( "Hello World!" );<br /> l.show();<br /> return app.exec();<br />}<br />
    35. 35. Hello World<br />#include <QApplication><br />#include <QLabel><br />int main( int argc, char **argv )<br />{<br /> QApplication app( argc, argv );<br />QLabel l( "Hello World!" );<br /> l.show();<br /> return app.exec();<br />}<br />
    36. 36. Hello World<br />#include <QApplication><br />#include <QLabel><br />int main( int argc, char **argv )<br />{<br /> QApplication app( argc, argv );<br /> QLabel l( "Hello World!" );<br /> l.show();<br />return app.exec();<br />}<br />
    37. 37. Qt Creator<br />Development Tools :<br />The only IDE we need  <br />
    38. 38. Qt Creator<br />
    39. 39. Qt Creator<br />
    40. 40. Preparation<br /><ul><li>Choose your platform (Windows, Mac, Linux)
    41. 41. Download QtSDK http://qt.nokia.com/downloads
    42. 42. Install Qt SDK. </li></li></ul><li>OS Comparison<br />
    43. 43. DEMO<br />Get Familiar with Qt Creator<br />
    44. 44. DEMO<br />Signal & Slot<br />
    45. 45. DEMO<br />QtStylesheet<br />
    46. 46. DEMO<br />Make Installer<br />
    47. 47. DEMO<br />Banzai Nihongo<br />
    48. 48. The NEXT API<br />Connect with existing service<br />
    49. 49. Great API for developers <br /><ul><li>Qt Mobility
    50. 50. Push Notification
    51. 51. NFC API</li></li></ul><li>OVI Store<br />One place to get money<br />
    52. 52. Sell your Apps <br />
    53. 53. The Platform<br />
    54. 54. Your Turn. Your Idea<br />
    55. 55. Thank you <br />Puja Pramudya<br />puja.pramudya@gmail.com<br />http://pujalabs.net<br />

    ×