HI anda_skoa,
Thanks for replying to execute my program successfully which class should i use instead of QWidget,
Please tell me and if possible can you please post the code that helps to execute my program.
Thanks in advance,
Rohith.G
HI anda_skoa,
Thanks for replying to execute my program successfully which class should i use instead of QWidget,
Please tell me and if possible can you please post the code that helps to execute my program.
Thanks in advance,
Rohith.G
Hi anda_skoa,
I just need a program to create a button in qml and when i click on the button it should print the qDebug that was present in the slot of C++.
I am trying to learn how to connect Qml and C++ by using signal and slots that is what my intention.
Thanks in advance,
Rohith.G
There are a couple of options to do something like that.
The easiest way is to create an instance of a QObject derived class in C++ and use QQmlContext::setContextProperty() to make that instance accessible from QML.
The context itself can be retrieved from the QQmlEngine of the QQuickView.
Cheers,
_
Bookmarks