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. QGraphicsView - custom curve dissapearing when too close

QGraphicsView - custom curve dissapearing when too close

Scheduled Pinned Locked Moved Unsolved General and Desktop
qgraphicsviewqgraphicssceneqgraphicsitem
3 Posts 1 Posters 484 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.
  • D Offline
    D Offline
    Dariusz
    wrote on 15 Oct 2019, 18:44 last edited by
    #1

    Hey

    I've created my own QGraphicsItem - curve to do some drawing but whenever I zoom close the curve disappears.

    What function do I have to inherit/extend to handle visibility draw call?

    Regards
    Dariusz

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Dariusz
      wrote on 21 Oct 2019, 07:52 last edited by
      #2

      Bump... 8 chars....

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Dariusz
        wrote on 25 Oct 2019, 03:25 last edited by
        #3

        It appears that QGraphicsScene checks if position of item is visible in view and then draws/dont draws it... returning qgraphicsScene->sceneRect() as boundingRect on my curve "solved" the issues but its a problem for selectable items... hmmm

        1 Reply Last reply
        0

        3/3

        25 Oct 2019, 03:25

        • Login

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