graphicsview \ diagramscene in QML?
-
wrote on 1 Jul 2016, 21:55 last edited by
Taking into account the current QML development stage, what is the right technology to choose for a "widgets\graphicsview\diagramscene"-like (scene of many blocks with inputs and outputs and connectors between them) desktop app: still QGraphicsScene or QML?
Thank you!
-
Hi and welcome to devnet,
That really depends on what your application does and what it needs in terms of UI. Both have their pros and cons.
You should give more details about what your application requires to get a more precise recommendation.
-
Taking into account the current QML development stage, what is the right technology to choose for a "widgets\graphicsview\diagramscene"-like (scene of many blocks with inputs and outputs and connectors between them) desktop app: still QGraphicsScene or QML?
Thank you!
wrote on 2 Jul 2016, 09:23 last edited byHi! IMAO QtQuick is preferable because it makes implementing a rich GUI (Animations, 3D, ...) much easier and also the C++ / QML language barrier enforces a strict division of business logic and GUI.
-
wrote on 2 Jul 2016, 18:15 last edited by
Appreciate your answers, guys! Does anybody know any QML example of such a scene with blocks connected by mouse (drag&drop etc)? Not to invent another bicycle? )
-
wrote on 4 Jul 2016, 05:01 last edited by Shp. 7 Apr 2016, 08:33
There is an example http://doc.qt.io/qt-5/qtquick-scenegraph-customgeometry-example.html . But how can I dynamically create connection via mouse between, for example, two rectangels?
2/5