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 scenerect to pixmap Viceversa
Forum Updated to NodeBB v4.3 + New Features

QGraphicsView scenerect to pixmap Viceversa

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 135 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.
  • DonCoderD Offline
    DonCoderD Offline
    DonCoder
    wrote on last edited by
    #1

    Every line is a graphic item in the following image I have rendered the scene contents to a pixmap to solve a performance issue while moving QGraphicsview through arrow keys.

    SO when Moving arrow keys, I am drawing pixmap instead of painting all items on the view as there is no change in the scene change. So the user will see the pixmap. WHen user try to edit it I will switch to normal viewport painting. The problem is when shuffling between pixmap painting to normal painting there is some pixel alignment is observed as the device transformation different in Pixmap painting and default viewport painting. How can solve this issue? So the user could not notice the switch between pixmap and all items painting.
    unnamed.jpg

    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