Skip to content

Latest commit

 

History

History

qml5-contextproperty

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

QML5 Context Property - Exporting C++ data to QML

This is a minimal example to learn how to use QQmlContext::setContextProperty().

This project uses an old Qt5 method of exporting properties and functions to QML, but it uses the new CMake API for Qt6.

Use context property when you want to export data from a C++ object to every available QML file.

Important reminders: