QtQUICK 2.0 vs C++ Widget



  • I have a problem: I want to make a GUI interface to QUICK 2.0. I want to make C + + component that displays a graph and embed it in QUICK 2.0.
    how to make such a component?



  • Just make a subclass of QQuickPaintedItem and draw your graph in the paint method, just as you would in a normal widget. Then expose it to qml by registring the type. There should be several examples of this. Alternatively you can draw the graph using Canvas + javascript itself.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.