[Qt-interest] Placing items on top of each other on a QGraphicsView

Josiah Bryan jbryan at productiveconcepts.com
Sun Oct 4 05:47:59 CEST 2009


Andreas Unger wrote:
> Hi all,
>
> There are times when I have two or three items in a QGraphicsView and 
> sometimes these items overlap. Now, I'd like to make sure that if 
> there's an overlap between two items, one particular item should 
> always be on top of the other. How do I do this?
>
QGraphicsItem::setZValue()

http://doc.trolltech.com/4.5/qgraphicsitem.html#setZValue

Cheers!
-josiah




More information about the Qt-interest-old mailing list