Currently I'm trying to develop some simple plot prototype and I'm struggling with some kind of white/empty sheet syndrome. I'm back to Qt after 2 years, so I feel quite retarded.
My application should:
My plan is to use following design:
QGraphicsScene
/View/Item as a sprite like management widgets for background, markers, pointers and other "bitmap" objects etc.QPainter
/ Qpixmap
or QPicture
for actual data layers - and if possible set them as QGraphicItem
to simplify management of dynamic graphicsI don't want to use Qwt or similar library, unless I can plot with it on custom background (I don't like the look of the qwt's graphic style).
Is my plan proper in scope of qt class usage and composition? I'd like to have at least clear overview of the classes which should be involved for this kind of prototype. Thanks in advance. P.
I think you have the basic idea with QGraphicsView. Here are a few resources which might help:
Graphics View
Diagram Scene
If you want to use the new animation and state set classes:
Stickman
Also, take a look at gunnar's labs blog. He recently did a series on graphics performance.
All of these are strictly Qt (animation and state set are in 4.6). They are in C++ but hopefully you can translate what you need to python.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With