Hello,
• My project requirement is to display some moving objects(images with text) in one area of screen and list of objects needs to be shown in a tree view in another area of the screen, on selection of any object, detail of that object will be shown in other view(line edit, combo box, table) and particular object will be highlighted (selection) in the tree view. With the moving objects, Grids and Ellipse are also needs to be displayed.
• So we followed layer type architecture like one graphics item on the above of another graphics item and background of each graphics item is transparent so each object is visible.
• For the above requirements we used Qt 4.8.2 in which model view architecture and Qt graphics frame work is used.
• To display moving objects, we have created a parent graphics rectangle item and added this into graphics scene.
• To support model view architecture in graphics view frame work, we used QDeclarativeItem.
• So now a QGraphicsRect item is the parent of QDeclarativeItem and successfully added in the QGraphicsScene.
• Now we planned to upgrade to Qt version i.e. Qt 4.8.2 to Qt 5.7 and above.
• The challenges we are facing is to change the QDeclarativeItem, when we changed it by QQuickItem then objects are not displayed in the scene because QGraphicsRect item cannot be the parent of QQuickItem.
• We also tried QQuickPaintedItem but the result was same.
• QQuickView is some how working but our screen is not loading correctly, some xcb warning is coming in the terminal.
• Now we used QQuickWidget and added it directly in QGraphicsscene but it’s background is not getting transparent so Grid and Ellipse are not visible.
• The properties and signals of Qml file is also not accessible through QQuickWidget.What will be the best solution???
• If we will migrate the whole project in Qml then what is the replacement of QGraphicsscene and if we want to add QGraphicsItems in Qml, will it be possible??? Because we have some vendors and they are developing few objects as a QGraphicsItems.