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

QLabel image scaling setting is hardcoded

    XMLWordPrintable

Details

    Description

      QPixmaps are able to scale images using simple scaling (with no filtering) and with bilinear filtering. However, QLabels have this setting hardcoded.

      From http://qt.gitorious.org/qt/qt/blobs/4.7/src/gui/widgets/qlabel.cpp
      Line 1166
      d->scaledpixmap = new QPixmap(QPixmap::fromImage(d->cachedimage->scaled(cr.size(),Qt::IgnoreAspectRatio,Qt::SmoothTransformation)));

      A smooth transformation is the only option, other than no scaling at all. This prevents existing functionality from being used. A property should be added to address this.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            mkoob Michael Koob
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes