[Qt-interest] Find Out If QWidget Is Inside a QGraphicsView

Andreas Pakulat apaku at gmx.de
Mon May 18 19:36:56 CEST 2009


On 18.05.09 17:52:59, Karol Krizka wrote:
> Is it possible to find out if a QWidget is drawm inside a QGraphicsView
> or if it is being drawn as a native widget?

No, the only way would be iterating over all items of the scene of that
view and for each item check wether its a proxy widget and if thats the
case check wether the given QWidget is that proxy's widget() or a child
of that one.

Andreas

-- 
You're working under a slight handicap.  You happen to be human.



More information about the Qt-interest-old mailing list