[Qt-interest] setParentItem() is hanging
Andre Somers
andre at familiesomers.nl
Thu Feb 18 10:56:22 CET 2010
trinathpujari wrote:
> Hi All,
>
> When i am using setParentItem(), screen is hanging at the point
> of setParentItem() function call.
> Can anybody tell any other way of implementing the setParentItem(
> ) function.
>
> Thanking in Advance
>
> Regards
> Trinath
>
It would have been helpful if you would have given slightly more
context, but I will assume for now that you are refering to
QGraphicsItem::setParentItem, as that seems to be the only function with
that name in Qt.
Did you head the warning in the documentation?
> Calling this function on an item that is an ancestor of parent have
undefined behaviour.
André
More information about the Qt-interest-old
mailing list