Qt (software)

From Wikipedia, the free encyclopedia
Qt

The Qt designer used for GUI designing
Original author(s) Haavard Nord and Eirik Chambe-Eng[1]
Developer(s) Qt Project, Digia
Initial release 20 May 1995 (1995-05-20)[1]
Stable release 5.2 (December 12, 2013 (2013-12-12)) [±] [2]
Preview release 5.2.0 rc1 (November 29, 2013 (2013-11-29)) [±] [3]
Development status Active
Written in C++
Operating system Linux (Embedded, Wayland, X11), OS X, Windows, …
Platform Cross-platform
Type Application framework
License LGPL 2.1 (Qt open-source version)[4]
Qt Commercial License (Qt Commercial version)[5]
Website qt-project.org

Qt (/ˈkjuːt/ "cute", or unofficially as Q-T cue-tee[6][7]) is a cross-platform application framework that is widely used for developing application software with a graphical user interface (GUI) (in which cases Qt is classified as a widget toolkit), and also used for developing non-GUI programs such as command-line tools and consoles for servers.

Qt uses standard C++ but makes extensive use of a special code generator (called the Meta Object Compiler, or moc) together with several macros to enrich the language. Qt can also be used in several other programming languages via language bindings. It runs on the major desktop platforms and some of the mobile platforms. It has extensive internationalization support. Non-GUI features include SQL database access, XML parsing, thread management, network support, and a unified cross-platform application programming interface (API) for file handling.

Qt is available under a commercial license, GPL v3 and LGPL v2. All editions support many compilers, including the GCC C++ compiler and the Visual Studio suite.

Qt is developed by Digia, who owns the Qt trademark, and the Qt Project under open governance, involving individual developers and firms working to advance Qt. Before the launch of the Qt Project, it was produced by Nokia's Qt Development Frameworks division, which came into existence after Nokia's acquisition of the Norwegian company Trolltech, the original producer of Qt.[8] In February 2011, Nokia announced its decision to drop Symbian technologies and base their future smartphones on Microsoft platform instead. One month later, Nokia announced the sale of Qt's commercial licensing and professional services to Digia, with the immediate goal of taking Qt support to Android, iOS and Windows 8 platforms, and to continue focusing on desktop and embedded development, although Nokia was to remain the main development force behind the framework at that time.[9]

Platforms

Qt works on the following platforms:

External ports

Since Nokia opened the Qt source code to the community on Gitorious various ports have been appearing. Here are some of them:

Deprecated ports

Editions

There are three editions of Qt available on each of these platforms, namely:

  • GUI Framework – commercial entry level GUI edition, stripped of network and database support (formerly named "Desktop Light")
  • Full Framework – complete commercial edition
  • Open Source – complete Open Source edition

Qt is available under the following copyright licenses:[42]

Releases

Qt 4

Trolltech released Qt 4.0 on 28 June 2005 and introduced five new technologies in the framework:

  • Tulip A set of template container classes.
  • Interview A model–view–controller architecture for item views.
  • Arthur A 2D painting framework.
  • Scribe A Unicode text renderer with a public API for performing low-level text layout.
  • MainWindow A modern action-based main window, toolbar, menu, and docking architecture.

Qt 5

Qt 5 was originally expected to be released in June 2012[44] but the release was delayed several times.[45] It was officially released on 19 December 2012. This new version marks a major change in the platform, with hardware-accelerated graphics, QML and JavaScript playing a major role. The traditional C++-only QWidgets continue to be supported, but do not benefit from the performance improvements available through the new architecture.[46] Qt5 brings significant improvements to the speed and ease of developing user interfaces.[47]

Framework development of Qt 5 moved to open governance, taking place at qt-project.org. It is now possible for developers outside Digia to submit patches and have them reviewed.[48]

Version Release date New features
5.0 19 December 2012[49] Major overhaul of the Qt 4.x series.
Complete Wayland support, including the client-side decorations.
5.1 3 July 2013 New modules and experimental Android and iOS support as technology preview.[50]
5.2 12 December 2013 First release with official support of Android and iOS.

Current version (5.2)

Qt 5.2 provides several improvements, including a new Scene graph renderer that has much better performance for drawing vector objects by using an OpenGL backend and minimizing GPU overdraws. Benchmarks of development versions shows significant improvements in speed and a visible decrease in CPU usage, because of the better usage of GPU rendering. The vision is to have game-like performance for the drawing canvas and QML renderer.[51] Besides, Qt 5.2 introduces new functionalities for KDE Frameworks 5 and many other improvements.[52]

Software architecture

Example of Qt usage in Linux-based systems

Qt, when it was first released, relied on a few key concepts:

  • Complete abstraction of the GUI – When first released, Qt used its own paint engine and controls, emulating the look of the different platforms it runs on when it drew its widgets. This made the porting work easier because very few classes in Qt depended really on the target platform; however, this occasionally led to slight discrepancies where that emulation was imperfect.
Recent versions of Qt use the native style APIs of the different platforms, on platforms that have a native widget set, to query metrics and draw most controls, and do not suffer from such issues as much.[53]
On some platforms (such as MeeGo and KDE) Qt is the native API.
Some other portable graphical toolkits have made different design decisions; for example, wxWidgets uses the toolkits of the target platform for its implementations.
  • Signals and slots - a language construct introduced in Qt for communication between objects[54] which makes it easy to implement the Observer pattern while avoiding boilerplate code. The concept is that GUI widgets can send signals containing event information which can be received by other controls using special functions known as slots.
  • Metaobject compiler - The metaobject compiler, termed moc, is a tool that is run on the sources of a Qt program. It interprets certain macros from the C++ code as annotations, and uses them to generate added C++ code with Meta Information about the classes used in the program. This meta information is used by Qt to provide programming features not available natively in C++: signals and slots, introspection and asynchronous function calls.

QtScript ECMAScript interpreter

QtScript is a cross-platform toolkit that allows developers to make their Qt/C++ applications scriptable using an interpreted scripting language: Qt Script (based on ECMAScript/JavaScript).

From Qt 4.3.0 onward, the scripting API,[55] which makes use of some concepts from the earlier QSA,[56] is integrated as a core part of Qt. With Qt 5.0 it became an add-on module for Qt 4 compatibility.[57]

Modules

Starting with Qt 4.0 the framework was split into individual modules.[58][59] With Qt 5.0 the architecture was modularized even further.[60][61] Qt is now split into essential and add-on modules.[62]

Tools

  • Qt Creator, a cross-platform IDE for C++ and QML. Qt Designer's GUI layout/design functionality is integrated into this relatively new IDE, although Qt Designer can still be called as a standalone tool.
  • qmake, a tool that automates the generation of Makefiles for development project across different platforms

Programming language bindings

Qt has a range of bindings for various languages[63] that implement some or all of its feature set.

History

Haavard Nord and Eirik Chambe-Eng (the original developers of Qt and the CEO and President, respectively, of Trolltech) began development of "Qt" in 1991, three years before the company was incorporated as Quasar Technologies, then changed the name to Troll Tech and then to Trolltech.[1]

The toolkit was called Qt because the letter Q looked appealing in Haavard's Emacs typeface, and "t" was inspired by Xt, the X toolkit.[1]

The first two versions of Qt had only two flavors: Qt/X11 for Unix and Qt/Windows for Windows. The Windows platform was only available under a proprietary license, which meant free/open source applications written in Qt for X11 could not be ported to Windows without purchasing the proprietary edition.

At the end of 2001, Trolltech released Qt 3.0, which added support for Mac OS X. The Mac OS X support was available only in the proprietary license until June 2003, when Trolltech released Qt 3.2 with Mac OS X support available under the GPL.

In June 2005, Trolltech released Qt 4.0.[64]

Nokia acquired Trolltech ASA on 17 June 2008 and changed the name first to Qt Software, then to Qt Development Frameworks. Since then it focused on Qt development to turn it into the main development platform for its devices, including a port to the Symbian S60 platform. Version 1.0 of the Nokia Qt SDK was released on 23 June 2010.[65] The source code was made available over Gitorious, a community oriented git source code repository, to gather an even broader community that is not only using Qt but also helping to improve it.

Licensing

At all times, Qt was available under a commercial license that allows developing proprietary applications with no restrictions on licensing. In addition, Qt has been gradually made available under several increasingly free licenses.

Until version 1.45, source code for Qt was released under the FreeQt license. This was viewed as not compliant with the open source principle by the Open Source Initiative and the free software definition by Free Software Foundation because, while the source was available, it did not allow the redistribution of modified versions.

Controversy erupted around 1998 when it became clear that KDE's KDE Software Compilation was going to become one of the leading desktop environments for Linux. As it was based on Qt, many people in the free software movement worried that an essential piece of one of their major operating systems would be proprietary.

With the release of version 2.0 of the toolkit, the license was changed to the Q Public License (QPL), a free software license but one regarded by the Free Software Foundation as incompatible with the GPL. Compromises were sought between KDE and Trolltech whereby Qt would not be able to fall under a more restrictive license than the QPL, even if Trolltech was bought out or went bankrupt. This led to the creation of the KDE Free Qt foundation, which guarantees that Qt would fall under a BSD-style license should no free/open source version of Qt be released during 12 months.

In 2000, Qt/X11 2.2 was released under the GPL v2,[66] ending all controversy regarding GPL compatibility.

In 2002, members of the KDE on Cygwin project began porting the GPL licensed Qt/X11 code base to Windows.[67] This was in response to Trolltech's refusal to license Qt/Windows under the GPL on the grounds that Windows was not a free/open source software platform.[68][69] The project achieved reasonable success although it never reached production quality.

This was resolved when Trolltech released Qt/Windows 4 under the GPL in June 2005. Qt 4 now supports the same set of platforms in the free software/open source editions as in the proprietary edition, so it is now possible to create GPL-licensed free/open source applications using Qt on all supported platforms. The GPL v3 with special exception[70] was later added as an added licensing option. The GPL exception allows the final application to be licensed under various GPL-incompatible free software/open source licenses such as the Mozilla Public License 1.1.

On 14 January 2009, Qt version 4.5 added another option, the LGPL,[71] which should make Qt even more attractive for non-GPL open source projects and for closed applications.[72]

In March 2011, Nokia sold the commercial licensing part of Qt to Digia creating Qt Commercial.

Uses

Qt is most notably used in:

See also

References

  1. 1.0 1.1 1.2 1.3 Blanchette, Jasmin; Summerfield, Mark (June 2006). "A Brief History of Qt". C++ GUI Programming with Qt 4 (1st ed.). Prentice-Hall. pp. xv–xvii. Retrieved 5 August 2013. 
  2. Lars Knoll (12 December 2013). "Qt 5.2 Released". Retrieved 12 December 2013. 
  3. Jani Heikkinen (29 November 2013). "Qt 5.2 Release Candidate 1 Available". Retrieved 1 December 2013. 
  4. 4.0 4.1 "Qt GNU LGPL v. 2.1 Version". 
  5. 5.0 5.1 "Qt Commercial version under the Qt Commercial License". 
  6. "That Smartphone Is So Qt". Ashlee Vance. 16 February 2010. Retrieved 19 February 2010. 
  7. "The Qt 4 Dance" (video). Retrieved 19 February 2010. 
  8. Hughes, Bradley T. (30 January 2008). "About the Nokia acquisition". Retrieved 17 September 2013. 
  9. Nystrom, Sebastian (7 March 2011). "Nokia and Digia working together to grow the Qt community". Retrieved 8 July 2011. 
  10. "Qt Wiki – Support for OS X". Qt Project. 14 August 2011. Retrieved 21 August 2013. 
  11. "Qt Wiki – Support for Linux/X11". Qt Project. 12 August 2011. Retrieved 21 August 2013. 
  12. "Qt Wiki – Support for Embedded Linux". Qt Project. 12 August 2011. Retrieved 21 August 2013. 
  13. Jørgen Lind (18 March 2011). "Multi-process Lighthouse". Qt Project. Retrieved 21 August 2013. 
  14. "Getting started with Lighthouse". Retrieved 25 November 2011. 
  15. Kristian Høgsberg (25 January 2011). "Add wayland lighthouse plugin". 
  16. Qt Blog. "Qt Commercial Formally Supports QNX | Qt Blog". Blog.qt.digia.com. Retrieved 2013-03-19. 
  17. nratelle. "Github project". Github.com. Retrieved 13 November 2011. 
  18. "Blackberry | Qt Wiki". Qt Project. 16 January 2013. Retrieved 19 March 2013. 
  19. "[New Features in Qt 5.1 - Support for New Platforms". Digia. 3 July 2013. Retrieved 3 July 2013. 
  20. "Necessitas project". Retrieved 3 December 2012. 
  21. "Supported Platforms". Retrieved 01 February 2014. 
  22. Qt Blog. "Qt Commercial for VxWorks | Qt Blog". Blog.qt.digia.com. Retrieved 2013-03-19. 
  23. Bjoern Breitmeyer (21 August 2013). "The State of WinCE Support in Qt5". KDAB. Retrieved 21 August 2013. 
  24. "Qt Wiki – Support for Windows". Qt Project. 11 August 2011. Retrieved 11 August 2013. 
  25. "KDE on OpenSolaris". Hub.opensolaris.org. 26 October 2009. Retrieved 13 November 2011. 
  26. "Qt Applications and UI Framework for Haiku". Qt-haiku.ru. Retrieved 13 November 2011. 
  27. "Qt 4 Application and UI Framework for eCS". Svn.netlabs.org. 15 September 2011. Retrieved 13 November 2011. 
  28. Qt webOS port
  29. darron (25 February 2010). "Blog: Qt on the Palm Pre". Griffin.net. Retrieved 13 November 2011. 
  30. darron (30 January 2010). "Blog: Qt on Amazon Kindle DX". Griffin.net. Retrieved 13 November 2011. 
  31. "Qt Ubuntu". Launchpad.net. 29 January 2013. Retrieved 19 March 2013. 
  32. "Qt AmigaOS Native 4.7". Retrieved 5 August 2013. 
  33. "Qt for Tizen". Retrieved 15 December 2013. 
  34. "Support for Symbian | Qt Wiki". Qt Project. 29 August 2012. Retrieved 19 March 2013. 
  35. "Qt for S60 – Forum Nokia Wiki". Wiki.forum.nokia.com. Retrieved 13 November 2011. 
  36. "Nokia Announce Technology preview of Qt on S60". All About Symbian. 20 October 2008. Retrieved 13 November 2011. 
  37. Paul, Ryan (20 October 2008). "Nokia releases first Qt preview for Symbian S60". ars technica. Retrieved 13 November 2011. 
  38. Espen Riskedal (20 October 2008). "Qt Labs Blogs – We’re porting Qt to S60!". Labs.trolltech.com. Retrieved 13 November 2011. 
  39. "Qt Software – Technology Preview – Qt for S60". Trolltech.com. Retrieved 13 November 2011. 
  40. "David Wood: S60 / Avkon are dead". Tamss60.tamoggemon.com. Retrieved 13 November 2011. 
  41. "Qt Wiki – Support for Windows CE and Windows Mobile". Developer.qt.nokia.com. 12 August 2011. Retrieved 13 November 2011. 
  42. "Qt Licensing". 
  43. "Qt GNU GPL v. 3.0 Version". 
  44. "Qt_5.0 | Qt Wiki". Qt Project. 13 March 2012. Retrieved 19 March 2013. 
  45. "Qt 5 | Qt Wiki". Qt Project. Retrieved 2013-03-19. 
  46. "Concern about removal of QWidget classes". Qt5-feedback mailing list. 7 October 2011. http://lists.qt.nokia.com/public/qt5-feedback/2011-October/001622.html.
  47. Knoll, Lars (9 May 2011). "Thoughts about Qt 5". Digia. Retrieved 9 May 2011. 
  48. Lars Knoll (21 October 2011). "The Qt Project is live!". Nokia. Retrieved 8 February 2012. 
  49. Qt Blog. "Introducing Qt 5.0 | Qt Blog". Digia. Retrieved 2013-03-19. 
  50. "New Features in Qt 5.1". Digia. 3 July 2013. Retrieved 3 July 2013. 
  51. "New Scene Graph Renderer | Qt Blog". Qt Project. 2 September 2013. Retrieved 8 September 2013. 
  52. "Qt 5.2 To Bring New Scene Graph Renderer | Phoronix". Phoronix. 3 September 2013. Retrieved 8 September 2013. 
  53. "Library". Digia. "Qt uses the native graphics APIs of each platform it supports, taking full advantage of system resources and ensuring that applications have native look and feel." 
  54. "Signals & Slots - QtCore 5.1". Qt Project. 4 July 2013. Retrieved 4 July 2013. 
  55. "Qt 4.3: QtScript Module". Doc.trolltech.com. Retrieved 13 November 2011. 
  56. "QSA 1.2: Qt Script for Applications". Doc.trolltech.com. Retrieved 13 November 2011. 
  57. "QtDoc 5.0: All Modules | Documentation". Qt Project. Retrieved 2013-04-08. 
  58. "Trolltech Releases Qt 4.0". KDE. 28 June 2005. Retrieved 5 August 2013. 
  59. "All Modules | Documentation". Qt Project. Retrieved 2013-04-08. 
  60. Qt Blog (19 December 2012). "Introducing Qt 5.0 | Qt Blog". Digia. Retrieved 8 April 2013. 
  61. Kyle Morris (24 December 2012). "Qt 5.0 - Congratulations to the Qt Project". KDE. Retrieved 5 August 2013. 
  62. "QtDoc 5.1: All Modules". Qt Project. Retrieved 2013-04-08. 
  63. "Programming Language Support & Language Bindings". Qt Project. Retrieved 21 August 2013. 
  64. "Trolltech Releases Qt 4.0 | KDE.news". Dot.kde.org. Retrieved 13 November 2011. 
  65. Niels Weber (23 June 2010). "Nokia Qt SDK 1.0 released". Labs.trolltech.com. Retrieved 13 November 2011. 
  66. "Trolltech offers a choice in licensing with the addition of GPL licensing for the upcoming release of Qt". Qt.nokia.com. Retrieved 13 November 2011. 
  67. Q../Windows Edition history, 5 June 2006
  68. E-mail to the kde-cygwin mailing list by Chris January, 4 February 2003
  69. Qt Non-commercial FAQ, 5 October 2003
  70. "Nokia Corporation Qt GPL Exception Version 1.3". Doc.trolltech.com. 22 July 1999. Retrieved 13 November 2011. 
  71. Nyström, Sebastian (14 January 2009). "Nokia to license Qt under LGPL". Retrieved 17 September 2013. 
  72. "ICS Whitepaper on the Implications of Qt under LGPL for Commercial and Government users" (PDF). Retrieved 13 November 2011. 
  73. "Qt in Autodesk". 
  74. "Qt in visual effects". 
  75. "Qt for Blackberry Tablet OS & BB10". 
  76. "Dassault Systemes Releases Free DraftSight For Linux.". 
  77. "Qt delivered advanced, cross-platform C++ GUI for Mathematica’s development team". 
  78. "Qt in the European Space Agency". 
  79. "Behind the Scenes at DreamWorks Animation: Making the Apps that Make the Movies". 
  80. "UI & System Design Challenges for the NxG Lighting Tool". 
  81. "Google Earth Includes a Web Browser". Googlesystem.blogspot.de. 15 June 2010. Retrieved 8 April 2013. 
  82. "Developing Innovative Desktop and Embedded HP Products with Qt". 
  83. "The KDE development platform". 
  84. "Lucasfilm Entertainment Company Ltd.". 
  85. "Qt in Visual Effects". 
  86. "Qt provided The Foundry with a solution that required minimal tweaking and customization.". 
  87. "Panasonic selects Qt for HD video system". 
  88. "Qt in IP Communications". 
  89. "Qt in Home Media". 
  90. "Qt helped Siemens deliver a C++ development platform for manufacturing software GUIs". 
  91. "Qt in use – Skype.". Archived from the original on 2009-02-26. 
  92. "Canonical's Windowing Shift: More than a Mir Techie Footnote". Linux.com. 6 March 2013. Retrieved 8 April 2013. 
  93. "Qt in VideoLan Player". 
  94. "Volvo Mobility Systems". 
  95. "Qt helped Walt Disney reduce development time spent on its cross-platform feature film production application". 

Bibliography

External links

This article is issued from Wikipedia. The text is available under the Creative Commons Attribution/Share Alike; additional terms may apply for the media files.