Qt 6.12 LTS is out! See what's new in the release
blog
ItemHasNoContents and boundingRect
General and Desktop
3
Posts
2
Posters
2.4k
Views
1
Watching
-
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.