Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
. The ideas  behind Qt  and a live demo Qt in Education Semana de tecnologia do  Barão de Mauá Instrutor: Marcelo Barros d...
© 2010 Nokia Corporation and its Subsidiary(-ies). The enclosed Qt Educational Training Materials are provided under the C...
What is Qt? <ul><li>C++ framework – bindings for other languages </li><ul><li>Python, Ruby, C#, etcetera </li></ul><li>Ori...
What is Qt? <ul><li>Qt is built from modules </li><ul><li>All modules have a common scheme and are built from the same API...
What is Qt? <ul><li>Qt extends C++ with macros and introspection
All code is still plain C++ </li></ul>foreach (int value, intList) { … } QObject *o = new QPustButton; o->metaObject()->cl...
The Purpose of Qt <ul><li>Cross platform applications built from one source
Builds native applications with native look and feel
Easy to (re)use API, high developer productivity, openess, fun to use </li></ul>
Desktop target platforms <ul><li>Windows
Mac OS X
Linux/Unix X11 </li></ul>
Embedded target platforms <ul><li>Windows CE
Symbian
Maemo
Embedded Linux </li><ul><li>Direct framebuffer access </li></ul></ul>
Where is Qt used?
Where is Qt used?
Commercial and Open Source <ul><li>LGPL – free </li><ul><li>Your application can be open or closed
Changes to Qt must be fed back to the community </li></ul><li>GPL – free </li><ul><li>Your application must be open
Changes to Qt must be fed back to the community </li></ul><li>Commercial – costs money </li><ul><li>Your application can b...
Changes to Qt can be kept closed </li></ul></ul>
The history of Qt <ul><li>1991 – Haavard Nord and Eirik Chambe-Eng begin to develop what will be Qt supporting X11 and Win...
1994 – The company Trolltech was formed
1996 – The KDE project was  started by Matthias Ettrich  (now works for Nokia Qt  Development Frameworks) </li></ul>
The history of Qt <ul><li>2001 – Added support for Mac OS X
2005 – All platforms released under GPL
2008 – Nokia acquires Trolltech
2009 – Support for S60
2010 – Support for Meego </li></ul>
Qt Today <ul><li>~840 classes
More than 2M of source lines of code
Nächste SlideShare
Wird geladen in …5
×

Treinamento Qt básico - aula I

3.678 Aufrufe

Veröffentlicht am

Treinamento de Qt básico apresentado na semanada de tecnologia do Barão de Mauá (Ribeirão Preto/SP) usando um material provido pela Nokia com modificações.

Veröffentlicht in: Technologie
  • DOWNLOAD FULL BOOKS INTO AVAILABLE FORMAT ......................................................................................................................... ......................................................................................................................... 1.DOWNLOAD FULL PDF EBOOK here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL EPUB Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL doc Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL PDF EBOOK here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL EPUB Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... 1.DOWNLOAD FULL doc Ebook here { https://tinyurl.com/y8nn3gmc } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier

Treinamento Qt básico - aula I

  1. 1. . The ideas behind Qt and a live demo Qt in Education Semana de tecnologia do Barão de Mauá Instrutor: Marcelo Barros de Almeida [email_address]
  2. 2. © 2010 Nokia Corporation and its Subsidiary(-ies). The enclosed Qt Educational Training Materials are provided under the Creative Commons Attribution-Non-Commercial-Share Alike 2.5 License Agreement. The full license text is available here: http://creativecommons.org/licenses/by-nc-sa/2.5/legalcode . Nokia, Qt and the Nokia and Qt logos are the registered trademarks of Nokia Corporation in Finland and other countries worldwide.
  3. 3. What is Qt? <ul><li>C++ framework – bindings for other languages </li><ul><li>Python, Ruby, C#, etcetera </li></ul><li>Original for user interfaces – now for everything </li><ul><li>Databases, XML, WebKit, multimedia, networking, OpenGL, scripting, non-GUI... </li></ul></ul>” Qt is a cross platform development framework written in C++.”
  4. 4. What is Qt? <ul><li>Qt is built from modules </li><ul><li>All modules have a common scheme and are built from the same API design ideas </li></ul></ul>QtCore Phonon QtXmlPatterns QtXml QtWebKit QtSvg QtSql QtScript QtOpenVG QtOpenGL QtNetwork QtMultimedia QtGui
  5. 5. What is Qt? <ul><li>Qt extends C++ with macros and introspection
  6. 6. All code is still plain C++ </li></ul>foreach (int value, intList) { … } QObject *o = new QPustButton; o->metaObject()->className(); // returns ”QPushButton” connect(button, SIGNAL(clicked()), window, SLOT(close()));
  7. 7. The Purpose of Qt <ul><li>Cross platform applications built from one source
  8. 8. Builds native applications with native look and feel
  9. 9. Easy to (re)use API, high developer productivity, openess, fun to use </li></ul>
  10. 10. Desktop target platforms <ul><li>Windows
  11. 11. Mac OS X
  12. 12. Linux/Unix X11 </li></ul>
  13. 13. Embedded target platforms <ul><li>Windows CE
  14. 14. Symbian
  15. 15. Maemo
  16. 16. Embedded Linux </li><ul><li>Direct framebuffer access </li></ul></ul>
  17. 17. Where is Qt used?
  18. 18. Where is Qt used?
  19. 19. Commercial and Open Source <ul><li>LGPL – free </li><ul><li>Your application can be open or closed
  20. 20. Changes to Qt must be fed back to the community </li></ul><li>GPL – free </li><ul><li>Your application must be open
  21. 21. Changes to Qt must be fed back to the community </li></ul><li>Commercial – costs money </li><ul><li>Your application can be closed
  22. 22. Changes to Qt can be kept closed </li></ul></ul>
  23. 23. The history of Qt <ul><li>1991 – Haavard Nord and Eirik Chambe-Eng begin to develop what will be Qt supporting X11 and Windows
  24. 24. 1994 – The company Trolltech was formed
  25. 25. 1996 – The KDE project was started by Matthias Ettrich (now works for Nokia Qt Development Frameworks) </li></ul>
  26. 26. The history of Qt <ul><li>2001 – Added support for Mac OS X
  27. 27. 2005 – All platforms released under GPL
  28. 28. 2008 – Nokia acquires Trolltech
  29. 29. 2009 – Support for S60
  30. 30. 2010 – Support for Meego </li></ul>
  31. 31. Qt Today <ul><li>~840 classes
  32. 32. More than 2M of source lines of code
  33. 33. ~180 developers working on Qt </li></ul>
  34. 34. The Qt community <ul><li>Qt is open source software, but the development is led by Qt Development Frameworks.
  35. 35. You can pay Qt for support.
  36. 36. You can use the community for support.
  37. 37. Or both... </li></ul>
  38. 38. The Qt Community <ul><li>QtCentre (www.qtcentre.org) </li><ul><li>forum, news, wiki </li></ul><li>Qt labs (labs.trolltech.com) </li><ul><li>developer blogs, research projects </li></ul><li>#qt at freenode </li><ul><li>IRC channel, has wiki at qtnode.net </li></ul><li>Mailing lists (lists.trolltech.com) </li><ul><li>Qt-interest (still very active) </li></ul></ul>
  39. 39. The KDE Community <ul><li>The KDE project has been built on Qt
  40. 40. KDE TechBase (techbase.kde.org) wiki </li></ul>+ =
  41. 41. Getting Qt Installers and snapshots are downloaded from qt.nokia.com/downloads Bleeding edge source trees are located at qt.gitorious.com
  42. 42. Getting Qt <ul><li>The easiest way to get started is to download the Qt SDK. It contains </li><ul><li>Qt headers and documentation
  43. 43. Pre-built Qt libraries and tools
  44. 44. The QtCreator integrated development environment </li></ul></ul>
  45. 45. Windows Installation <ul><li>Download the Qt SDK for Windows
  46. 46. Run the downloaded installer
  47. 47. Click through the installer
  48. 48. Start QtCreator from the start menu </li></ul>
  49. 49. Mac OS X installation <ul><li>Download the Qt SDK for Mac OS X
  50. 50. Run the downloaded installer package
  51. 51. Click through the installer
  52. 52. Start QtCreator from the Finder </li></ul>
  53. 53. X11 Installation <ul><li>Download the Qt SDK for your Linux version
  54. 54. Make the installer executable
  55. 55. Run the installer and click your way through it
  56. 56. Start QtCreator from your desktop or menu </li></ul>chmod u+x qt-sdk-linux-*.bin
  57. 57. Demonstration
  58. 58. Qt Installation: - Qt SDK for Windows - Nokia Qt SDK for Windows
  59. 59. X11 installation <ul><li>If possible, use the package manager from your distribution
  60. 60. (K)ubuntu – qt-sdk from universe
  61. 61. Debian – qtcreator
  62. 62. OpenSUSE – qt-creator
  63. 63. Gentoo – qt-creator
  64. 64. Arch Linux – qt qt-doc qt-creator
  65. 65. ... </li></ul>
  66. 66. Hello World
  67. 67. Hello World #include <QApplication> #include <QLabel> int main( int argc, char **argv ) { QApplication app( argc, argv ); QLabel l( &quot;Hello World!&quot; ); l.show(); return app.exec(); }
  68. 68. Hello World #include <QApplication> #include <QLabel> int main( int argc, char **argv ) { QApplication app( argc, argv ); QLabel l( &quot;Hello World!&quot; ); l.show(); return app.exec(); }
  69. 69. Hello World #include <QApplication> #include <QLabel> int main( int argc, char **argv ) { QApplication app( argc, argv ); QLabel l( &quot;Hello World!&quot; ); l.show(); return app.exec(); }
  70. 70. Hello World #include <QApplication> #include <QLabel> int main( int argc, char **argv ) { QApplication app( argc, argv ); QLabel l( &quot;Hello World!&quot; ); l.show(); return app.exec(); }
  71. 71. Hello World #include <QApplication> #include <QLabel> int main( int argc, char **argv ) { QApplication app( argc, argv ); QLabel l( &quot;Hello World!&quot; ); l.show(); return app.exec(); }
  72. 72. Exercises

×