QGraphicsScene/View some QGraphicsItems stationary when scrolling
Hi,
I am writing scope software and I have need to keep certain things stationary when the scope screen is scrolled horizontally. What is the easy way?
The stuff I need to have stationary are not only Widgets - there is also QGraphicsItems.
I have tried most part of today to get small program to work but I really don't understand this stuff so therefore I don't post example program. But would highly appreciate if someone of you could give a little example how to do it.
Would the layers concept of QGraphicsScene be one possible solution?
I am a beginner have been doing QT now 2,5 months.
Best Regards
Kari Laine
1 Attachment(s)
Re: QGraphicsScene/View some QGraphicsItems stationary when scrolling
Hi,
not seeing much comments... maybe my question is stupid or so obvious I should be able to solve it myself - but I can't.
Now I know how to make QWidgets stationary. Just make them parented to view.
But I can't make QGraphicsItems stationary. I attach a simple program in which I draw an circle.
So if someone could give me either comments or modify it to keep circle from moving when scene is scrolled.
Best Regards
Kari