Best way for cross-platform interactive graphical/canvas widget?
-
Hi there!
I need to implement an interactive graphical timeline that looks something like the attached concept shots. It should be hardware accelerated across platforms.
What's the best way to do this? QWidget? QGraphicsView? Quick? I have extensive experience with QWidget, decent experience with QGraphicsView, and no experience with Quick.
Thanks!
-
Hi
I think a QGraphicsView custom item would work super.
QML is also very suited for this.
However, if you are not using QML already and timeline is to be used in Widget
application, i would go with QGraphicsFramework - as the amount of boilerplate for mixing
QML and c++ is not that trivial. (for all the timeline data)But could also be a good excuse to learn QML ;)
-
Hi
I think a QGraphicsView custom item would work super.
QML is also very suited for this.
However, if you are not using QML already and timeline is to be used in Widget
application, i would go with QGraphicsFramework - as the amount of boilerplate for mixing
QML and c++ is not that trivial. (for all the timeline data)But could also be a good excuse to learn QML ;)
@mrjj Thanks for your response. How is the painting performance on QWidget compare to doing something similar in QtQuick?
-
@mrjj Thanks for your response. How is the painting performance on QWidget compare to doing something similar in QtQuick?
@patrickkidd
Hi
QGraphicsFramework can be openGL accelerated and in that regards
be as fast as QtQuick.A QPainter implementation might be slow on hi resolutions displays but
would also run fine on desktop class pc.