[Qt-interest] Placing items on top of each other on a QGraphicsView
Andreas Unger
andi.unger05 at gmail.com
Sun Oct 4 06:05:37 CEST 2009
You're the man! setZValue() works.
Thanks,
Andreas
On Sat, Oct 3, 2009 at 11:47 PM, Josiah Bryan <jbryan at productiveconcepts.com
> wrote:
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091004/db83dcaa/attachment.html
More information about the Qt-interest-old
mailing list