Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. ItemHasNoContents and boundingRect
Qt 6.11 is out! See what's new in the release blog

ItemHasNoContents and boundingRect

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    Iqscope
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jupiter
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Iqscope
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved