[Qt-interest] Immovable QGraphicsItems when the QGraphicsView moves. How?

william.crocker at analog.com william.crocker at analog.com
Tue Apr 20 17:16:17 CEST 2010



Gordon Schumacher wrote:
> On Sat, 17 Apr 2010 18:24:40 +0300, Salvatore Iovene
> <salvatore at iovene.com> wrote:
>> I'd like to have so OSD (On Screen Display) objects, such as Score, a
>> Radar Map, and other overlay elements that are not supposed to move.
>>
>> The problem is that they get world coordinates, and since the
>> QGraphicsView is moving around, they get out of the scene.
>>
>> Could you please recommend a way to have these object static in my
>> scene?
>>   
> 
> Just shouting out to the Trolls - I think this is the fourth request
> I've seen for this sort of usage in the past few weeks; this suggests
> that it might be a good case to go into the examples/ directory -
> especially seeing as how I've seen several different suggestions on how
> to go about it, ranging over a pretty wide degree of ugliness... :)


Use an overlay widget.
Works for me.


> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
> 



More information about the Qt-interest-old mailing list