Qt (software): Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Almaliq (talk | contribs)
Changed date of acquisition and its reference
Almaliq (talk | contribs)
Added link to QT Software
Line 14: Line 14:
}}
}}


'''Qt''' (pronounced "cute" by its creators<ref>[http://dot.kde.org/1081772638/ Interview with Trolltech president Eirik Eng] on dot.kde.org</ref>) is a [[cross-platform]] application development framework, widely used for the development of [[graphical user interface|GUI]] programs (in which case it is known as a ''[[widget toolkit]]''), and also used for developing non-GUI programs such as console tools and servers. Qt is most notably used in [[KDE]], [[Opera (web browser)|Opera]], [[Google Earth]],<!-- Do not delete stuff you don't research first --> [[Skype]], [[Qtopia]], [[Photoshop Elements]], [[VirtualBox]] and [[OPIE user interface|OPIE]]. It is produced by the [[Norway|Norwegian]] company QT Software, formerly known as [[Trolltech]], an wholly-owned subsidiary of [[Nokia]] since [[June 17]], [[2008]].<ref> [http://trolltech.com/about/the-nokia-acquisition Nokia acquired Trolltech ]</ref>
'''Qt''' (pronounced "cute" by its creators<ref>[http://dot.kde.org/1081772638/ Interview with Trolltech president Eirik Eng] on dot.kde.org</ref>) is a [[cross-platform]] application development framework, widely used for the development of [[graphical user interface|GUI]] programs (in which case it is known as a ''[[widget toolkit]]''), and also used for developing non-GUI programs such as console tools and servers. Qt is most notably used in [[KDE]], [[Opera (web browser)|Opera]], [[Google Earth]],<!-- Do not delete stuff you don't research first --> [[Skype]], [[Qtopia]], [[Photoshop Elements]], [[VirtualBox]] and [[OPIE user interface|OPIE]]. It is produced by the [[Norway|Norwegian]] company [[Qt_Software|QT Software]], formerly known as [[Trolltech]], an wholly-owned subsidiary of [[Nokia]] since [[June 17]], [[2008]].<ref> [http://trolltech.com/about/the-nokia-acquisition Nokia acquired Trolltech ]</ref>


Qt uses [[C++]] with several non-standard extensions implemented by an additional pre-processor that generates standard C++ code before compilation. Qt can also be used in several other programming languages; [[Language binding|bindings]] exist for [[Ada (programming language)|Ada]] (QtAda),<ref>[http://www.qtada.com/en/index.html QtAda], Ada 2005 bindings for Qt</ref> [[C Sharp (programming language)|C#]] (Qyoto/Kimono),<ref>[http://www.qyoto.org/ The Qyoto / Kimono Project], a .Net and C# bindings for Qt</ref> [[Java (programming language)|Java]] ([[Qt Jambi]]),<ref>[http://trolltech.com/products/qt/features/language-support/java Qt Jambi], Java bindings for Qt from Trolltech</ref> [[Pascal (programming language)|Pascal]], [[Perl]], [[PHP]] (PHP-Qt), [[Ruby MRI|Ruby]] (RubyQt), and [[Python (programming language)|Python]] ([[PyQt]]). It runs on all major platforms, and has extensive [[internationalization]] support. Non-GUI features include [[SQL]] database access, [[XML]] parsing, [[Thread (computer science)|thread]] management, network support and a unified cross-platform [[application programming interface|API]] for file handling.
Qt uses [[C++]] with several non-standard extensions implemented by an additional pre-processor that generates standard C++ code before compilation. Qt can also be used in several other programming languages; [[Language binding|bindings]] exist for [[Ada (programming language)|Ada]] (QtAda),<ref>[http://www.qtada.com/en/index.html QtAda], Ada 2005 bindings for Qt</ref> [[C Sharp (programming language)|C#]] (Qyoto/Kimono),<ref>[http://www.qyoto.org/ The Qyoto / Kimono Project], a .Net and C# bindings for Qt</ref> [[Java (programming language)|Java]] ([[Qt Jambi]]),<ref>[http://trolltech.com/products/qt/features/language-support/java Qt Jambi], Java bindings for Qt from Trolltech</ref> [[Pascal (programming language)|Pascal]], [[Perl]], [[PHP]] (PHP-Qt), [[Ruby MRI|Ruby]] (RubyQt), and [[Python (programming language)|Python]] ([[PyQt]]). It runs on all major platforms, and has extensive [[internationalization]] support. Non-GUI features include [[SQL]] database access, [[XML]] parsing, [[Thread (computer science)|thread]] management, network support and a unified cross-platform [[application programming interface|API]] for file handling.

Revision as of 10:26, 12 October 2008

Qt
Developer(s)Qt Software (formerly known as Trolltech)
Stable release
4.4.3 / September 28, 2008; 15 years ago (2008-09-28)
Repository
Written inC++
Operating systemCross-platform
TypeWidget toolkit
License GPL 2/3
Q Public License
Proprietary
Websitehttp://trolltech.com/products/qt/

Qt (pronounced "cute" by its creators[1]) is a cross-platform application development framework, widely used for the development of GUI programs (in which case it is known as a widget toolkit), and also used for developing non-GUI programs such as console tools and servers. Qt is most notably used in KDE, Opera, Google Earth, Skype, Qtopia, Photoshop Elements, VirtualBox and OPIE. It is produced by the Norwegian company QT Software, formerly known as Trolltech, an wholly-owned subsidiary of Nokia since June 17, 2008.[2]

Qt uses C++ with several non-standard extensions implemented by an additional pre-processor that generates standard C++ code before compilation. Qt can also be used in several other programming languages; bindings exist for Ada (QtAda),[3] C# (Qyoto/Kimono),[4] Java (Qt Jambi),[5] Pascal, Perl, PHP (PHP-Qt), Ruby (RubyQt), and Python (PyQt). It runs on all major platforms, and has extensive internationalization support. Non-GUI features include SQL database access, XML parsing, thread management, network support and a unified cross-platform API for file handling.

Varieties

Qt is released by Trolltech on the following platforms:

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

  • Qt Console – edition for non-GUI development
  • Qt Desktop Light – entry level GUI edition, stripped of network and database support
  • Qt Desktop – complete edition
  • Qt Open Source Edition – "complete" edition, with some exceptions,[7] for free software/open source developers

Qt is available under a dual license, the GPL v2 or v3 with special exception[8] and a proprietary commercial license on all supported platforms. The commercial license allows the final application to be licensed under various free software/open source licenses such as the LGPL or the Artistic License, or a proprietary software license.

All editions support a wide range of compilers, including the GCC C++ compiler and the Visual Studio suite.

Current

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

  • Tulip A set of template container classes.
  • Interview A model/view 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 4.1, released on December 19, 2005, introduced integrated SVG Tiny support, a PDF backend to Qt's printing system, and a few other features.

Qt 4.2, released on October 4, 2006, introduced Windows Vista support, introduced native CSS support for widget styling, as well as the QGraphicsView framework for efficient rendering of thousands of 2D objects onscreen, to replace Qt 3.x's QCanvas class.

Qt 4.3, released on May 30, 2007, improved Windows Vista support, improved OpenGL engine, SVG file generation, added QtScript (ECMAScript scripting engine based on QSA).[9]

Qt 4.4, released on May 6, 2008. Features included are improved multimedia support using Phonon, enhanced XML support, a concurrency framework to ease the development of multi-threaded applications, an IPC framework with a focus on shared memory, and WebKit integration.

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.

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

Controversy erupted around 1998 when it became clear that KDE was going to become one of the leading desktop environments for Linux. As KDE 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.

This gave rise to two efforts: the Harmony toolkit, which sought to duplicate the Qt Toolkit under a free software license, and the GNOME desktop, which intended to supplant KDE entirely. The GNOME Desktop uses the GTK+ toolkit, which was originally written for the GIMP, and primarily uses the C programming language.

Until version 1.45, source code for Qt was released under the FreeQt license — which 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. 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 software/open source version of Qt be released during 12 months.

The first two versions of Qt had only two flavours: Qt/X11 for Unix and Qt/Windows for the Windows platform. The Windows platform was only available under the proprietary license which meant free/open source applications written in Qt for X11 could not be ported to Windows without purchasing the QPL edition. In the end of 2001, Trolltech released Qt 3.0 which added support for the Mac OS X platform. The Mac OS X support was available only in the proprietary license, until June 2003, where Trolltech released Qt 3.2 with Mac OS X support available under the GPL.

In 2002 members of the KDE on Cygwin project began porting the GPL licensed Qt/X11 code base to Windows.[11] This was in response to Trolltech's refusal to license Qt/Windows under the GPL on the grounds that Windows was not a free software/open source platform.[12][13] 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.

Design

The innovation of Qt when it was first released relied on a few key concepts.

Use of native UI-rendering APIs

Qt used to emulate the native look of its intended platforms, which occasionally led to slight discrepancies where that emulation wasn't perfect. Recent versions of Qt use the native APIs of the different platforms to draw the Qt controls, and so do not suffer from such issues. (See also wxWidgets, which relies on native APIs for most widget functionality.)

Meta object compiler

Known as the moc, this is a tool that is run on the sources of a Qt program prior to compiling it. The tool will generate "Meta Information" about the classes used in the program. This meta information is used by Qt to provide programming features not available in C++: The signal/slot system, introspection and asynchronous function calls.

The use of an additional tool has been criticized for making Qt programming different from pure C++ programming. In particular, the choice of an implementation based on macros has been criticized for its absence of type safety and pollution of the namespace. This is viewed by Trolltech as a necessary trade-off to provide introspection and the dynamically generated slot and signal mechanism.

QtScript ECMAScript interpreter

Qt Script for Applications 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 [14], which is based on QSA [15] is integrated as a core part of Qt and is no longer a separate library.

Applications built using Qt

Popular examples of applications which use Qt include:

See also

References

  1. ^ Interview with Trolltech president Eirik Eng on dot.kde.org
  2. ^ Nokia acquired Trolltech
  3. ^ QtAda, Ada 2005 bindings for Qt
  4. ^ The Qyoto / Kimono Project, a .Net and C# bindings for Qt
  5. ^ Qt Jambi, Java bindings for Qt from Trolltech
  6. ^ Qt for Windows CE Technology Preview Download — Trolltech
  7. ^ The ActiveQt class for ActiveX on Windows, for example, is not available in the Open Source Edition
  8. ^ Trolltech GPL Exception version 1.2
  9. ^ Trolltech: What’s New in Qt 4.3
  10. ^ "A Brief History of Qt". Retrieved 2007-12-20.
  11. ^ Q../Windows Edition history, 5 June 2006
  12. ^ E-mail to the kde-cygwin mailing list by Chris January, 4 February 2003
  13. ^ Qt Non-commercial FAQ, 5 October 2003
  14. ^ Qt 4.3: QtScript Module
  15. ^ QSA 1.2: Qt Script for Applications
  16. ^ TOra uses the Qt library

External links