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. How to display clear images with QPixmap?
Qt 6.11 is out! See what's new in the release blog

How to display clear images with QPixmap?

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 3 Posters 1.1k Views 2 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.
  • Q Offline
    Q Offline
    Quella
    wrote on last edited by
    #1

    When using QPixmap to load an image, if the size of the image file is 1000*1000 and the size of the image control is 32*32, there may be a grainy feeling or distortion when the screen resolution is 1080*1920 and the scaling ratio is 100%.
    What can I do to show a clear picture?

    Christian EhrlicherC 1 Reply Last reply
    0
    • Q Quella

      When using QPixmap to load an image, if the size of the image file is 1000*1000 and the size of the image control is 32*32, there may be a grainy feeling or distortion when the screen resolution is 1080*1920 and the scaling ratio is 100%.
      What can I do to show a clear picture?

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Do you really think you can downsize an image to 3% without loosing quality? Use a smaller source image.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      JonBJ Q 2 Replies Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        Do you really think you can downsize an image to 3% without loosing quality? Use a smaller source image.

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @Christian-Ehrlicher Or one with few pixels different from all the single background one... ;)

        1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          Do you really think you can downsize an image to 3% without loosing quality? Use a smaller source image.

          Q Offline
          Q Offline
          Quella
          wrote on last edited by
          #4

          @Christian-Ehrlicher Can I do this by compressing the image?

          Christian EhrlicherC 1 Reply Last reply
          0
          • Q Quella

            @Christian-Ehrlicher Can I do this by compressing the image?

            Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Quella I don't see what compression had to do with downscaling. Use a smaller image.

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            Q 1 Reply Last reply
            0
            • Christian EhrlicherC Christian Ehrlicher

              @Quella I don't see what compression had to do with downscaling. Use a smaller image.

              Q Offline
              Q Offline
              Quella
              wrote on last edited by
              #6

              @Christian-Ehrlicher Got it. Thanks for your answer.

              1 Reply Last reply
              0
              • Q Quella has marked this topic as solved on

              • Login

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