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. Fixed width line in QImage
Qt 6.11 is out! See what's new in the release blog

Fixed width line in QImage

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

    Hi! I am trying to create line plots using QImage. This plot is meant to be resizable in both width and height. The plotline I draw is usually 1 pixel wide, and each plotline consists of data points in tens of thousands and there are tens of plotlines in one QImage. When I resize, recalculating and redrawing the entire QImage takes a lot of time and so I am trying to just scale the QImage using scaled() function according to my requirements, this is very fast. However, if the height of QImage is small enough the line plots disappear, is there any way I can make sure that the plot lines have a fixed width no matter the size of QImage?

    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