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. Image Rendering with QGraphics Framework
QtWS25 Last Chance

Image Rendering with QGraphics Framework

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.8k 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.
  • S Offline
    S Offline
    sergex
    wrote on last edited by
    #1

    Hello,

    I am currently displaying audio waveforms and spectrograms in my app and I need to be able to zoom in and out of these images and have the best possible resolution in each level of zoom. For the display I am using the Qt Graphics Framework.

    I am a bit lost on how to approach this problem, I think that I have to keep several images of different zoom levels in memory and change them according to how much I zoom in ..? What is the proper way of tackling this issue?

    Any guidance or tips for what would be the best Qt tools or methods to use to get started I would really appreciate it.

    Thanks.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rcari
      wrote on last edited by
      #2

      You should check the QGraphicsPathItem. Provide a QPainterPath for your waveform, it will be repainted appropriately for the different zoom levels. QPainterPath turn out to be pretty fast. I don't know however if this item has some caching for different path approximations for different zoom levels but you could probably implement that if it does not exist.

      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