Mixing C++ and Rust - 'Hello World'-UI with Rust Using CXX-Qt

preview_player
Показать описание
CXX-Qt is KDAB's extension to CXX, which adds Qt features like properties, signals and slots to CXX.
In this step-by-step tutorial, we extend our "Hello World!" application from the last video with a very basic Qt GUI.

In the next video, we'll cover how to export data structures (like lists) to Qt with a simple Todo app.

Links:

You can also take a look at our other resources to get started with CXX-Qt:

Example code used in this video:

00:00 Welcome
02:00 CXX-Qt Overview
03:30 Project Setup - From CXX to CXX-Qt
07:45 QObjects with CXX-Qt
12:00 QProperties with CXX-Qt
14:30 QInvokables with CXX-Qt
19:30 Using Qt types from Rust with CXX-Qt-lib
21:30 QEnums with CXX-Qt
22:45 QML GUI using Rust types
29:30 Building the app with CXX-Qt-build
32:30 Starting Qt apps from Rust
36:15 Bug fixing
37:20 Summary & Outro

About the host:
Leon Matthes is a passionate Rust advocate and engineer since 2019. He has been working on KDAB's Rust R&D efforts by co-authoring CXX-Qt, KDABs open-source Rust-Qt interoperability framework.

About KDAB:

KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrollment courses around the world. We are the market leaders for training in Qt, OpenGL, and C++.

KDAB Group has 100+ employees across Americas, Europe and Asia. The main offices are in Germany, France, the UK, Binghamton, NY (USA), Houston, TX (USA), and Sweden
Рекомендации по теме
Комментарии
Автор

Do all the macros like QML_SINGLETON and QML_UNCREATABLE work?

I like it, but the amount of code seems to increase when compared to C++/QML

Felix
visit shbcf.ru