Language Bindings: Difference between revisions
No edit summary |
((1) Add kitech + miqt Go bindings, normalize formatting to use subheaders (2) zig: Remove extra newlines) |
||
Line 104: | Line 104: | ||
*QML bindings for the Zig language | *QML bindings for the Zig language | ||
===[https://github.com/vesim987/zqml Qt Quick for Zig] (zqml)=== | ===[https://github.com/vesim987/zqml Qt Quick for Zig] (zqml)=== | ||
Line 123: | Line 121: | ||
*QML bindings for Nim | *QML bindings for Nim | ||
===[https://github.com/therecipe/qt Qt for Go] (qt)=== | ===[https://github.com/therecipe/qt Qt for Go] (therecipe/qt)=== | ||
*Qt bindings for Go language | *Qt bindings for Go language | ||
**[https://github.com/therecipe/qt | |||
===[https://github.com/kitech/qt.go Qt for Go] (kitech/qt.go)=== | |||
*Qt bindings for Go language | |||
===[https://github.com/mappu/miqt Qt for Go] (MIQT)=== | |||
*Qt bindings for Go language | |||
===[https://github.com/therecipe/qt Qt for Go] (therecipe/qt)=== | |||
*Qt bindings for Go language | |||
===[https://github.com/go-qamel/qamel Qt for Go] (qamel)=== | |||
*QML bindings for Go language | *QML bindings for Go language | ||
===[https://github.com/bytedeco/javacpp-presets/tree/master/qt Qt for Java] (javacpp-presets)=== | ===[https://github.com/bytedeco/javacpp-presets/tree/master/qt Qt for Java] (javacpp-presets)=== |
Latest revision as of 05:22, 21 October 2024
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 and JavaScript-like declarative, language designed to describe the user interface of a program: both what it looks like, and how it behaves. As an alternative to using C++, Qt offers other languages, including Python . Officially, Python bindings are being maintained by the project, under the name of Qt for Python.
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++:
- Powerful mechanism for inter-object communication called signals and slots
- Queryable and designable object properties
- Powerful events and events filters
- Contextual string translation for internationalization
- Sophisticated interval driven timers that make it possible to elegantly integrate many tasks in an event-driven GUI
- Hierarchical and queryable object trees that organize object ownership in a natural way
- 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 works across library boundaries.
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, like in JSON.
- JavaScript, HTML and CSS skills can be used to code complete front-end apps
- Optimized for touch-based, animated mobile UIs
- Includes a set of graphical and behavioral building blocks: QML Types
- No C++ knowledge required for UI creation, while it can be extended with C++
Qt for Python
The Qt for Python project provides the PySide6 (and PySide2) module allowing users to develop Qt and QML application easily from Python.
- You can find more information for the project, which is currently available as a Technical Preview, in the wiki page.
- Compatible with Qt 5.11+. Currently in Qt6, Qt for Python is released on a similar cycle as the Qt framework, and supports Python 3.8+ (in Qt 6.6.0)
Qt for Python (PySide6) is the official set of Python wheels that The Qt Company provides.
Find out more about Qt for Python
These are third party language bindings for Qt
PyQt
(PyQt is developed by Riverbank Computing, not to be confused with Qt for Python (PySide) from The Qt Company)
Qt for Ring (RingQt)
RingQt is a binding of the Qt framework to the Ring programming language.
Ring uses Qt as its toolkit to provide cross-platform abilities.
Qt for Java and Kotlin (QtJambi)
QtJambi is Qt bindings for the Java programming language originally developed by Trolltech, the predecessor of The Qt Company.
The successive open source project provides bindings of Qt5 and Qt6 releases for latest Java JDK versions, GraalVM and Kotlin.
Qt for Rust (CXX-Qt)
Safe interop between Rust and Qt using CXX
CXX-Qt is a set of Rust crates for creating bidirectional Rust ⇄ C++ bindings with Qt. It can be used to integrate Rust into C++ applications using CMake or used to build Rust applications with Cargo. CXX-Qt provides tools for implementing QObject subclasses in Rust which can be used from C++, QML, and JavaScript.
Qt for Rust (Rust-Qt)
Qt bindings for the Rust language
Qt Quick for Rust (qmetaobject-rs)
QML bindings for the Rust language
Qt Quick for Rust (qml-rust)
- QML bindings for the Rust language
Qt Quick for Rust (qmlrs)
- QML bindings for the Rust language
Qt Quick for Zig (qml_zig)
- QML bindings for the Zig language
Qt Quick for Zig (zqml)
- QML bindings for the Zig language
Qt for Crystal (qt5.cr)
- Qt bindings for the Crystal language
Qt for Nim (nimqt)
- Qt bindings for Nim
Qt Quick for Nim (nimqml)
- QML bindings for Nim
Qt for Go (therecipe/qt)
- Qt bindings for Go language
Qt for Go (kitech/qt.go)
- Qt bindings for Go language
Qt for Go (MIQT)
- Qt bindings for Go language
Qt for Go (therecipe/qt)
- Qt bindings for Go language
Qt for Go (qamel)
- QML bindings for Go language
Qt for Java (javacpp-presets)
- Qt bindings for Java
Qt for C#/Mono/.Net (QtSharp)
This project aims to create Mono/.NET libraries that wrap Qt thus enabling its usage through C#. It relies on the excellent CppSharp.
Qt for C#/Mono/.Net (Qml.Net)
Qml.Net is cross-platform integration of Qml/QtQuick for .NET Core/.NET Framework/Mono. It is a binding that brings .NET types into JavaScript with full interoperability.
Qt for D (QtE5)
QtE5 is a binding of the Qt framework to the D programming language version 2.
Qt for Haskell (qtHaskell)
The qtHaskell project provides a comprehensive set of Haskell bindings for 50 Qt modules with extensive examples and demo programs including qtHaskell versions of Tetrix, DiagramScene, PathDeform and the Qt Asteroids game which uses FRP (Functional Reactive Programming) techniques to control game states and behaviors.
Qtah
The qtah project provides a set of Haskell bindings for Qt.
Qt for Julia (QML.jl)
This project provides bindings to Julia.
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 (lablqml)
QML Bindings to OCaml.
Node.js and Qt Widgets (NodeGui)
Build performant, native and cross-platform desktop applications with Node.js and CSS like styling. NodeGUI is powered by Qt Widgets which makes it CPU and memory efficient as compared to other chromium based solutions like electron.
Qt Quick for Node.js (Brig)
Qt Quick: The Brig project provides library for Qt Quick framework, making it possible to write graphical applications in JavaScript and QML languages.
QML bindings for Nelson language
Nelson is an array programming language providing a powerful open computing environment for engineering and scientific applications using modern C/C++ libraries and others state of art numerical libraries.
The QML engine enables nelson programs to display and manipulate graphical content using Qt's QML framework. see some examples: https://www.youtube.com/watch?time_continue=1&v=L3fsg4zhTjE
Qt for Free Pascal
Primarily for use with Lazarus but can be used standalone with FPC on Linux and FreeBSD.
This is not a complete binding set of the Qt framework for standalone use, but it is comprehensive enough for most applications, as it contains the core items needed for GUI programming.
On Linux distributions and FreeBSD use your package manager to search for qt6pas and qt5pas packages.
- Git repo for Qt6 pascal binding, packages for various Linux distros
- Git repo for Qt5 pascal binding, packages for various Linux distros
- Qt6 interface for Lazarus
- Qt5 interface for Lazarus
- Qt6 pascal binding for openSUSE
- Qt6 pascal binding for Fedora
- Qt6 pascal binding for FreeBSD
- Qt5 pascal binding for FreeBSD