Details
-
Bug
-
Resolution: Out of scope
-
P4: Low
-
4.7.1
-
None
-
All
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.