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. QImage in QGraphicsScene is pixelated when zooming in
Forum Update on Monday, May 27th 2025

QImage in QGraphicsScene is pixelated when zooming in

Scheduled Pinned Locked Moved Unsolved General and Desktop
qgraphicssceneqpixmapsvgpixelated
2 Posts 2 Posters 2.1k 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.
  • A Offline
    A Offline
    alogim
    wrote on 29 Feb 2016, 20:07 last edited by
    #1

    I created a simple custom QGraphicsScene in which user can zoom in and out by keeping pressed Ctrl key and moving the mouse wheel up and down.
    I have to add QImages to my QGraphicsScene. To achieve that, I first convert them to QPixmap with the function QPixmap::fromImage().
    However those pixmaps are really pixelated if I zoom in. Is there a way to create vectorial images from QImage and render them to the scene?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 29 Feb 2016, 20:41 last edited by
      #2

      hi
      As far as I know there is no build in raster to vector conversion.
      Also many images are not really good for it.

      Im wonder if QGraphicsScene is scaling images with best quality.
      http://stackoverflow.com/questions/22652491/qt-resize-image-with-best-quality

      1 Reply Last reply
      0

      1/2

      29 Feb 2016, 20:07

      • Login

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