Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.5.1
-
None
-
Mac OS X El Capitan running Qt Creator 3.5.1 and Qt 5.5.1 open source.
Description
This code used to create a label, fill it with a QImage as its pixmap. The resulting pixmap filled the area displayed on screen. Now the pixmap is super-large, and I can only see a fraction of it:
QLabel *label=new QLabel();
label->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
label->setScaledContents(true);
label->setPixmap(QPixmap::fromImage(QImage(":/Images/3DVideoSplashScreen.jpg")));
label->setFrameStyle(QFrame::Box);
this->layout()->addWidget(label);
Attachments
Issue Links
- duplicates
-
QTBUG-46846 QLabel scaledContents broken on high resolution (retina) displays
- Closed
- relates to
-
QTBUG-47844 [Regression] QLabel scaledContents stretches its pixmap way beyond its size
- Closed
-
QTBUG-49040 QLabel pixmap incorrectly scaled on Retina display
- Closed