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. Precision problem with QGraphicsScene using NoCache on items

Precision problem with QGraphicsScene using NoCache on items

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 675 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.
  • R Offline
    R Offline
    r0ots
    wrote on last edited by
    #1

    Hi,

    I have a precision problem with QGraphicsScene/View.

    The problem was not discovered before as all items were cached with DeviceCoordinateCache. But this mode makes the application really slow as I have a very large scale in my scene (zoom can go from 10e7 to 10e-5) and the pixmap cache were enormous. Many items must be redrawn each frame too as they kind of animate. So DeviceCoordinateCache is really not a thing to do IMHO.

    So I changed to NoCache and now I have precision problems. When I zoom in, paths starts to flicker, the width of the line flickers to and also totally disappears. The problem was not appearing at all when using DeviceCoordinateCache, all paths were drawn perfectly.

    So my question is:

    Is there a way to have the same drawing behavior as DeviceCoordinateCache (i.e perfect drawing) in NoCache Mode?

    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