Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-120042

QIcon pixmap(...) does not upscale

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.6.1, dev
    • GUI: High-DPI
    • None

    Description

      Imagine a png file with dimensions 64x64 called "icon64.png"

      QIcon icon("icon64.png");
      QPixmap px = icon.pixmap(QSize(128, 128));
      qDebug() << px.size();
      

      The final qDebug will always output "QSize(64, 64)" even though we request 128x128.
      ( See also attached example.zip )

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            madwinter Marcus Tillmanns
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes