Category:LanguageBindings: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(Added LangSwitch)
(Convert ExpressionEngine links)
Line 9: Line 9:
Qt provides an intuitive C++ class library with a rich set of application build blocks for C++ development. Qt goes beyond C++ in the areas of inter-object communication and flexibility for advanced GUI development. Qt adds the following features to C+'':
Qt provides an intuitive C++ class library with a rich set of application build blocks for C++ development. Qt goes beyond C++ in the areas of inter-object communication and flexibility for advanced GUI development. Qt adds the following features to C+'':


* Powerful mechanism for inter-object communication called "signals and slots":https://doc.qt.io/qt-5/signalsandslots.html
* Powerful mechanism for inter-object communication called [https://doc.qt.io/qt-5/signalsandslots.html signals and slots]
* Queryable and designable "object properties ":https://doc.qt.io/qt-5/properties.html#qt-s-property-system
* Queryable and designable [https://doc.qt.io/qt-5/properties.html#qt-s-property-system object properties ]
* Powerful "events and events filters ":https://doc.qt.io/qt-5/eventsandfilters.html
* Powerful [https://doc.qt.io/qt-5/eventsandfilters.html events and events filters ]
* Contextual "string translation for internationalization ":https://doc.qt.io/qt-5/i18n.html
* Contextual [https://doc.qt.io/qt-5/i18n.html string translation for internationalization ]
* Sophisticated interval driven "timers":https://doc.qt.io/qt-5/timers.html that make it possible to elegantly integrate many tasks in an event-driven GUI
* Sophisticated interval driven [https://doc.qt.io/qt-5/timers.html timers] that make it possible to elegantly integrate many tasks in an event-driven GUI
* Hierarchical and queryable "object trees":https://doc.qt.io/qt-5/objecttrees.html that organize object ownership in a natural way
* Hierarchical and queryable [https://doc.qt.io/qt-5/objecttrees.html object trees] that organize object ownership in a natural way
* "Guarded pointers":https://doc.qt.io/qt-5/qpointer.html that are automatically set to 0 when the referenced object is destroyed, unlike normal C++ pointers which become dangling pointers when their objects are destroyed
* [https://doc.qt.io/qt-5/qpointer.html Guarded pointers] that are automatically set to 0 when the referenced object is destroyed, unlike normal C++ pointers which become dangling pointers when their objects are destroyed
* A "dynamic cast ":https://doc.qt.io/qt-5/metaobjects.html works across library boundaries.
* A [https://doc.qt.io/qt-5/metaobjects.html dynamic cast ] works across library boundaries.


== QML Development with Qt Quick ==
== QML Development with Qt Quick ==
Line 24: Line 24:
* JavaScript, HTML and CSS skills can be used to code complete apps
* JavaScript, HTML and CSS skills can be used to code complete apps
* Optimized for touch-based, animated mobile UIs
* Optimized for touch-based, animated mobile UIs
* Includes a set of graphical and behavioral building blocks: "QML Elements ":http://doc.qt.nokia.com/4.7/qdeclarativeelements.html
* Includes a set of graphical and behavioral building blocks: [http://doc.qt.nokia.com/4.7/qdeclarativeelements.html QML Elements ]
* No C++ knowledge required for UI creation, but can be extended with C++
* No C++ knowledge required for UI creation, but can be extended with C++


"Find out more about Qt Quick":http://doc.qt.nokia.com/4.7/qdeclarativeintroduction.html
[http://doc.qt.nokia.com/4.7/qdeclarativeintroduction.html Find out more about Qt Quick]


== These are third party language bindings for Qt ==
== These are third party language bindings for Qt ==
Line 41: Line 41:
* [https://bugreports.qt.io/browse/PYSIDE Bug tracker]
* [https://bugreports.qt.io/browse/PYSIDE Bug tracker]


=== "PyQt":http://www.riverbankcomputing.com/news (GPL 3/commercial) ===
=== [http://www.riverbankcomputing.com/news PyQt] (GPL 3/commercial) ===


* "Tutorials":https://wiki.python.org/moin/PyQt/Tutorials
* [https://wiki.python.org/moin/PyQt/Tutorials Tutorials]
* "Reference Guide (PyQt4)":http://pyqt.sourceforge.net/Docs/PyQt4/
* [http://pyqt.sourceforge.net/Docs/PyQt4/ Reference Guide (PyQt4)]
* "API Documentation (PyQt4)":http://pyqt.sourceforge.net/Docs/PyQt4/classes.html
* [http://pyqt.sourceforge.net/Docs/PyQt4/classes.html API Documentation (PyQt4)]
* "Reference Guide (PyQt5)":http://pyqt.sourceforge.net/Docs/PyQt5/index.html
* [http://pyqt.sourceforge.net/Docs/PyQt5/index.html Reference Guide (PyQt5)]
* "API Documentation (PyQt5)":http://pyqt.sourceforge.net/Docs/PyQt5/class_reference.html
* [http://pyqt.sourceforge.net/Docs/PyQt5/class_reference.html API Documentation (PyQt5)]
* "Book":http://www.qtrac.eu/pyqtbook.html
* [http://www.qtrac.eu/pyqtbook.html Book]
* "Whitepaper":http://www.riverbankcomputing.com/software/pyqt/whitepaper
* [http://www.riverbankcomputing.com/software/pyqt/whitepaper Whitepaper]


=== "Qt for Java":http://qt.gitorious.org/qt-jambi (QtJambi, Windows/Mac/Linux) ===
=== [http://qt.gitorious.org/qt-jambi Qt for Java] (QtJambi, Windows/Mac/Linux) ===


Qt Jambi – Qt bindings to the Java programming language – is maintained by the community. You can find more information from http://qt-jambi.org.
Qt Jambi – Qt bindings to the Java programming language – is maintained by the community. You can find more information from http://qt-jambi.org.


* "Jambi Community":http://qt-jambi.org/
* [http://qt-jambi.org/ Jambi Community]
* "Old tutorial":http://doc.qt.digia.com/qtjambi-4.4/html/com/trolltech/qt/qtjambi-tutorial.html
* [http://doc.qt.digia.com/qtjambi-4.4/html/com/trolltech/qt/qtjambi-tutorial.html Old tutorial]
* "Old API Javadoc":http://doc.qt.digia.com/qtjambi-4.4/html/index.html
* [http://doc.qt.digia.com/qtjambi-4.4/html/index.html Old API Javadoc]


=== "Qt for Ruby":http://techbase.kde.org/Development/Languages/Ruby (QtRuby) ===
=== [http://techbase.kde.org/Development/Languages/Ruby Qt for Ruby] (QtRuby) ===


The project provides complete bindings to both the KDE API and the Qt APIs. The Korundum package includes both a QtRuby Qt-only binding along with the full combined Qt/KDE one. The QtRuby package contains just Qt bindings with no dependencies on KDE.
The project provides complete bindings to both the KDE API and the Qt APIs. The Korundum package includes both a QtRuby Qt-only binding along with the full combined Qt/KDE one. The QtRuby package contains just Qt bindings with no dependencies on KDE.


* "Tutorial":http://www.darshancomputing.com/qt4-qtruby-tutorial/
* [http://www.darshancomputing.com/qt4-qtruby-tutorial/ Tutorial]
* "Book":http://www.pragmaticprogrammer.com/titles/ctrubyqt/ (for Qt 3)
* [http://www.pragmaticprogrammer.com/titles/ctrubyqt/ Book] (for Qt 3)


=== "Qt for BASIC":http://www.kbasic.com/ (KBasic) ===
=== [http://www.kbasic.com/ Qt for BASIC] (KBasic) ===


KBasic uses Qt as its toolkit to provide cross-platform abilities. KBasic is a further BASIC dialect and is related to VB.NET™, Visual Basic®, Visual Basic for Application® and Java™. It combines several features and includes built-in backward support for QBasic®.
KBasic uses Qt as its toolkit to provide cross-platform abilities. KBasic is a further BASIC dialect and is related to VB.NET™, Visual Basic®, Visual Basic for Application® and Java™. It combines several features and includes built-in backward support for QBasic®.


=== "Qt for Ada 2005":http://www.qtada.com/ (QtAda) ===
=== [http://www.qtada.com/ Qt for Ada 2005] (QtAda) ===


QtAda is an Ada2005 language prividing bindings to the Qt libraries and a set of useful tools. QtAda supports Qt version 4.6 and later.
QtAda is an Ada2005 language prividing bindings to the Qt libraries and a set of useful tools. QtAda supports Qt version 4.6 and later.
Line 81: Line 81:
=== Perl bindings ===
=== Perl bindings ===


==== "official PerlQt and PerlKDE":https://projects.kde.org/projects/kde/kdebindings/perl ====
==== [https://projects.kde.org/projects/kde/kdebindings/perl official PerlQt and PerlKDE] ====


This is what the Linux distros ship. Expect updates for Qt5 in 2013. Subscribe to the "kde-bindings list":http://lists.kde.org/?l=kde-bindings for news.
This is what the Linux distros ship. Expect updates for Qt5 in 2013. Subscribe to the [http://lists.kde.org/?l=kde-bindings kde-bindings list] for news.


This repository used to be at "Google code":http://code.google.com/p/perlqt4/, then moved to KDE in 2012. Some outdated code snapshots are on "CPAN":http://search.cpan.org/~cburel/; prefer the KDE repository.
This repository used to be at [http://code.google.com/p/perlqt4/ Google code], then moved to KDE in 2012. Some outdated code snapshots are on [http://search.cpan.org/~cburel/; CPAN] prefer the KDE repository.


==== "Vadim Likhota bindings":http://search.cpan.org/~vadiml/ ====
==== [http://search.cpan.org/~vadiml/ Vadim Likhota bindings] ====


One-man effort, last updated 2008. "opendesktop.org mirror":http://www.opendesktop.org/content/show.php/?action=content&content=69748
One-man effort, last updated 2008. [http://www.opendesktop.org/content/show.php/?action=content&content=69748 opendesktop.org mirror]


==== "Dongxu Ma bindings":http://search.cpan.org/~dongxu/ ====
==== [http://search.cpan.org/~dongxu/ Dongxu Ma bindings] ====


One-man effort, last update 2012. "GitHub mirror":https://github.com/dxma/cpan/wiki
One-man effort, last update 2012. [https://github.com/dxma/cpan/wiki GitHub mirror]


==== "PerlQt3":http://sf.net/projects/perlqt ====
==== [http://sf.net/projects/perlqt PerlQt3] ====


Outdated, Qt3 only.
Outdated, Qt3 only.


==== "PerlQt":http://search.cpan.org/dist/PerlQt/ ====
==== [http://search.cpan.org/dist/PerlQt/ PerlQt] ====


Outdated, Qt2 and Qt1 only.
Outdated, Qt2 and Qt1 only.
Line 106: Line 106:
-----
-----


=== "Qt for C#":http://techbase.kde.org/Development/Languages/QtSharp (Qyoto)
=== [http://techbase.kde.org/Development/Languages/QtSharp Qt for C#] (Qyoto)
Qyoto makes it possible to develop Qt and KDE applications using C#, or any other .NET language. Qyoto uses SMOKE, and offers access to almost all Qt and KDE classes. ===
Qyoto makes it possible to develop Qt and KDE applications using C#, or any other .NET language. Qyoto uses SMOKE, and offers access to almost all Qt and KDE classes. ===


=== "Qt for D":http://www.dsource.org/projects/qtd (QtD) ===
=== [http://www.dsource.org/projects/qtd Qt for D] (QtD) ===


QtD is a binding of the Qt framework to the "D programming language version 2.":http://www.digitalmars.com/d/2.0/index.html
QtD is a binding of the Qt framework to the [http://www.digitalmars.com/d/2.0/index.html D programming language version 2.]


=== "Qt for Pascal":http://wiki.lazarus.freepascal.org/Qt4_binding (FPC Qt4 Binding) ===
=== [http://wiki.lazarus.freepascal.org/Qt4_binding Qt for Pascal] (FPC Qt4 Binding) ===


The Free Pascal Qt4 binding allows Free Pascal to interface with the C++ Library Qt. This binding does not cover the whole Qt4 framework but only the classes needed by the Cross Platform Lazarus IDE to use Qt as a Widget set. More "info":http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html
The Free Pascal Qt4 binding allows Free Pascal to interface with the C++ Library Qt. This binding does not cover the whole Qt4 framework but only the classes needed by the Cross Platform Lazarus IDE to use Qt as a Widget set. More [http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html info]


=== "Qt for Lua":http://www.nongnu.org/libqtlua/ (QtLua) ===
=== [http://www.nongnu.org/libqtlua/ Qt for Lua] (QtLua) ===


The QtLua library are trying to make Qt4 applications scriptable using the Lua scripting language as an alternative to the QtScript module.
The QtLua library are trying to make Qt4 applications scriptable using the Lua scripting language as an alternative to the QtScript module.


=== "Qt for Haskell":http://qthaskell.berlios.de/ (qtHaskell) ===
=== [http://qthaskell.berlios.de/ Qt for Haskell] (qtHaskell) ===


The qtHaskell project provides a set of Haskell bindings for Qt. Haskell programmers can access the "Signals and Slots" interface logic, design interfaces using Qt Designer and write scripted applications using the Qt ECMA/Javascript engine.
The qtHaskell project provides a set of Haskell bindings for Qt. Haskell programmers can access the "Signals and Slots" interface logic, design interfaces using Qt Designer and write scripted applications using the Qt ECMA/Javascript engine.


=== "Qt Quick for Haskell":http://www.gekkou.co.uk/software/hsqml/ (HsQML) ===
=== [http://www.gekkou.co.uk/software/hsqml/ Qt Quick for Haskell] (HsQML) ===


HsQML provides a Haskell binding to the Qt Quick framework. It allows you to write graphical applications where the front-end is written in Qt Quick's QML language (incorporating JavaScript) and the back-end is written in Haskell.
HsQML provides a Haskell binding to the Qt Quick framework. It allows you to write graphical applications where the front-end is written in Qt Quick's QML language (incorporating JavaScript) and the back-end is written in Haskell.


=== "Qt Quick for OCaml":http://kakadu.github.io/lablqt/ (lablqt) ===
=== [http://kakadu.github.io/lablqt/ Qt Quick for OCaml] (lablqt) ===


=== "Qt for PHP":http://sourceforge.net/projects/php-qt/ (PHP-Qt) ===
=== [http://sourceforge.net/projects/php-qt/ Qt for PHP] (PHP-Qt) ===


=== "Qt for Chicken Scheme":http://wiki.call-cc.org/eggref/4/qt (Qt 4 egg) ===
=== [http://wiki.call-cc.org/eggref/4/qt Qt for Chicken Scheme] (Qt 4 egg) ===


An incomplete binding which supports loading UI files, binding to GUIs thus instantiated, and networking and dbus functionality.
An incomplete binding which supports loading UI files, binding to GUIs thus instantiated, and networking and dbus functionality.


== References ==
== References ==

Revision as of 16:23, 18 August 2015

En Ar Bg De El Es Fa Fi Fr Hi Hu It Ja Kn Ko Ms Nl Pl Pt Ru Sq Th Tr Uk Zh

Programming Language Support & Language Bindings

The Qt API is implemented in C++, and provides additional features for easier cross-platform development. QML – introduced with Qt Quick is a CSS and JavaScript-like declarative, language designed to describe the user interface of a program: both what it looks like, and how it behaves. Bindings to Qt exist for several other languages, including Ada, Pascal, Perl, PHP, Ruby, Python and Java™.

C++ Development with Qt

Qt provides an intuitive C++ class library with a rich set of application build blocks for C++ development. Qt goes beyond C++ in the areas of inter-object communication and flexibility for advanced GUI development. Qt adds the following features to C+:

QML Development with Qt Quick

QML is a declarative, JavaScript-based language designed to describe the user interface of a program: both what it looks like, and how it behaves. In QML, a user interface is specified as a tree of objects with properties.

  • JavaScript, HTML and CSS skills can be used to code complete apps
  • Optimized for touch-based, animated mobile UIs
  • Includes a set of graphical and behavioral building blocks: QML Elements
  • No C++ knowledge required for UI creation, but can be extended with C++

Find out more about Qt Quick

These are third party language bindings for Qt

PySide: Python for Qt (LGPL)

PyQt (GPL 3/commercial)

Qt for Java (QtJambi, Windows/Mac/Linux)

Qt Jambi – Qt bindings to the Java programming language – is maintained by the community. You can find more information from http://qt-jambi.org.

Qt for Ruby (QtRuby)

The project provides complete bindings to both the KDE API and the Qt APIs. The Korundum package includes both a QtRuby Qt-only binding along with the full combined Qt/KDE one. The QtRuby package contains just Qt bindings with no dependencies on KDE.

Qt for BASIC (KBasic)

KBasic uses Qt as its toolkit to provide cross-platform abilities. KBasic is a further BASIC dialect and is related to VB.NET™, Visual Basic®, Visual Basic for Application® and Java™. It combines several features and includes built-in backward support for QBasic®.

Qt for Ada 2005 (QtAda)

QtAda is an Ada2005 language prividing bindings to the Qt libraries and a set of useful tools. QtAda supports Qt version 4.6 and later.



Perl bindings

official PerlQt and PerlKDE

This is what the Linux distros ship. Expect updates for Qt5 in 2013. Subscribe to the kde-bindings list for news.

This repository used to be at Google code, then moved to KDE in 2012. Some outdated code snapshots are on CPAN prefer the KDE repository.

Vadim Likhota bindings

One-man effort, last updated 2008. opendesktop.org mirror

Dongxu Ma bindings

One-man effort, last update 2012. GitHub mirror

PerlQt3

Outdated, Qt3 only.

PerlQt

Outdated, Qt2 and Qt1 only.



=== Qt for C# (Qyoto) Qyoto makes it possible to develop Qt and KDE applications using C#, or any other .NET language. Qyoto uses SMOKE, and offers access to almost all Qt and KDE classes. ===

Qt for D (QtD)

QtD is a binding of the Qt framework to the D programming language version 2.

Qt for Pascal (FPC Qt4 Binding)

The Free Pascal Qt4 binding allows Free Pascal to interface with the C++ Library Qt. This binding does not cover the whole Qt4 framework but only the classes needed by the Cross Platform Lazarus IDE to use Qt as a Widget set. More info

Qt for Lua (QtLua)

The QtLua library are trying to make Qt4 applications scriptable using the Lua scripting language as an alternative to the QtScript module.

Qt for Haskell (qtHaskell)

The qtHaskell project provides a set of Haskell bindings for Qt. Haskell programmers can access the "Signals and Slots" interface logic, design interfaces using Qt Designer and write scripted applications using the Qt ECMA/Javascript engine.

Qt Quick for Haskell (HsQML)

HsQML provides a Haskell binding to the Qt Quick framework. It allows you to write graphical applications where the front-end is written in Qt Quick's QML language (incorporating JavaScript) and the back-end is written in Haskell.

Qt Quick for OCaml (lablqt)

Qt for PHP (PHP-Qt)

Qt for Chicken Scheme (Qt 4 egg)

An incomplete binding which supports loading UI files, binding to GUIs thus instantiated, and networking and dbus functionality.

References

This category currently contains no pages or media.