Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Porting a "model" using graphicsview-scene framework
thiberi0 last edited by
I have made a application that uses the concepts from diagramscene example from QtWidgets and would like to know if is possible to do something like that in QML. The core part of application it is a custom class derived from QGraphicsScene and some custom items derived from QGraphicsItem, just like the example.
I would like to know if its possible to create objects dynamically(when someone click some point of screen) and manage them in QML using c++. It's worth it the effort?Or QtWidgets will still be used in long future?
mcosta last edited by
I would like to know if its possible to create objects dynamically(when someone click some point of screen) and manage them in QML using c++.
Yes you can; you can use QML for UI and C++ for the logic (is the standard for non trivial application)
There're no plans to drop QtWidgets; but keep in mind that QtQuick is the suggested technology for new applications and it is the one where the Qt developers will spend most of the time.
And, last but not least, QtQuick use in a better way accelerated graphics.