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. Strange box around my custom QGraphicsObject subclass
Qt 6.11 is out! See what's new in the release blog

Strange box around my custom QGraphicsObject subclass

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 164 Views
  • 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.
  • enjoysmathE Offline
    enjoysmathE Offline
    enjoysmath
    wrote on last edited by enjoysmath
    #1

    ee2761cc-840b-4e34-b2f8-23d3b057d70d-image.png

    It's the outermost box (the pic is zoomed in; but at larger zoom it appears to be just 1 pixel wide) Shouldn't be there. I am definitely not drawing it. What I know: its the boundingRect() in size/pos/shape.

    It goes away only when I drag the white box.

    https://github.com/enjoysmath
    https://math.stackexchange.com/users/26327/exercisingmathematician

    enjoysmathE 1 Reply Last reply
    0
    • enjoysmathE enjoysmath

      ee2761cc-840b-4e34-b2f8-23d3b057d70d-image.png

      It's the outermost box (the pic is zoomed in; but at larger zoom it appears to be just 1 pixel wide) Shouldn't be there. I am definitely not drawing it. What I know: its the boundingRect() in size/pos/shape.

      It goes away only when I drag the white box.

      enjoysmathE Offline
      enjoysmathE Offline
      enjoysmath
      wrote on last edited by
      #2

      @enjoysmath

      I googled around and there are no solutions. So what I've done is changed by boundingRect() definition to be childrenBoundingRect().adjusted(-1,-1,1,1) so it's hidden. I previously needed a larger bounding rect so that I could render a circle to connect arrows (connect arrow button). It will have to be a half-circle now :'(

      https://github.com/enjoysmath
      https://math.stackexchange.com/users/26327/exercisingmathematician

      1 Reply Last reply
      0
      • enjoysmathE enjoysmath has marked this topic as solved on

      • Login

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