Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
5.2.0 Beta1
-
OSX 10.8.5 with Retina display
-
-
dc267036e31f9193bad76c803ee162df5ec2d40d
Description
On Retina mac, button icon is smoothed on checked state and it looks blurry that way.
main.cpp
#include <QMainWindow> #include <QApplication> #include <QtWidgets> int main(int argc, char *argv[]) { QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); QApplication a(argc, argv); QPixmap pix("/tmp/finder.png"); QIcon icon(pix); QToolBar* toolBar = new QToolBar(); QToolButton* toolButton = new QToolButton(); toolButton->setIcon(icon); toolButton->setCheckable(true); toolBar->addWidget(toolButton); QMainWindow w; w.addToolBar(toolBar); w.show(); toolButton->setChecked(true); return a.exec(); }
Attachments
For Gerrit Dashboard: QTBUG-35162 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
97560,2 | OS X: Retina displays and blurry QToolButton | 5.4 | qt/qtbase | Status: MERGED | +2 | 0 |