Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

ItemHasNoContents and boundingRect



  • hi,

    it's a very simple question.
    what boundingRect should be returned if I set the flag "ItemHasNoContents".
    In my project, this item has more child items. If I return rect(0,0,0,0),
    what happens to the child items?



  • why don't you just try it? there is also the method childrenBoundingRect() perhaps you might want to return that.



  • hi,
    i will try but there are perhaps some side-effects, I do not see!
    So, I ask to prevent this ;)

    But good idea, I will have a look at this method.


Log in to reply