[Interest] Pixmap redraw on OS X Retina display zoomed-in 4x?

Edward Sutton edward.sutton at subsite.com
Fri Jan 22 20:44:05 CET 2016


On Jan 22, 2016, at 1:30 PM, Jason H <jhihn at gmx.com<mailto:jhihn at gmx.com>> wrote:

>Look for something called DevicePixelRatio... Also QML Screen attached property/element. It might be a shortcoming in Qt, but you should be able to work around it.

Thanks Jason.  I have same issue on iOS as well.

I will Google Qt examples for DevicePixelRatio. I am puzzled why Qt scaling does not occur automatically?

Maybe it does automatically scale for QML.  I am using QWidgets.

-Ed




Sent: Friday, January 22, 2016 at 8:57 AM
From: "Edward Sutton" <edward.sutton at subsite.com<mailto:edward.sutton at subsite.com>>
To: "Qt Interest" <interest at qt-project.org<mailto:interest at qt-project.org>>
Subject: [Interest] Pixmap redraw on OS X Retina display zoomed-in 4x?



  *   I have a QTableWidget.
  *   In the name column zero I have cell widget consisting of a QCommandLinkButton
  *   I added a horizontal layout to QCommandLinkButton containing 3 QLabels, 2 with text, and the middle label contains a pixmap.

Problem:

1 - When QWidget app runs on external HD display all is good. See screenshot below.
2 - When the same QWidget app is executed on the MacBook’s internal retina display, the pixmaps are zoomed in about 4X.

Suggestions are appreciated.

( I wish I had been paying attention to the high DPI discussions now. )

-Ed

Screenshot 1 - HD display all is good.

<Mail Attachment.png>


Screenshot 2 - After redraw on retina  pixmaps are zoomed in about 4X?


<Mail Attachment.png>


This email and any files transmitted with it from The Charles Machine Works, Inc. are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender. Our company accepts no liability for the contents of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. _______________________________________________ Interest mailing list Interest at qt-project.org<mailto:Interest at qt-project.org> http://lists.qt-project.org/mailman/listinfo/interest<https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.qt-2Dproject.org_mailman_listinfo_interest&d=CwMFaQ&c=G4BpsyPyB19LB50bn2swXw&r=cAG2c-SQES5P2qb8IW-uwnBOCX_f2qYJIlzenFnoHUc&m=lbpdyTyHhdyvOr22hM8gdq44tKGjcog9cVmJmsAGq4o&s=9BoCRH443q8wR0AjsR1DHwmwE4nEEZiZtyTNMxg5g3M&e=>

This email and any files transmitted with it from The Charles Machine Works, Inc. are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the sender. Our company accepts no liability for the contents of this email, or for the consequences of any actions taken on the basis of the information provided, unless that information is subsequently confirmed in writing. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20160122/0f035291/attachment.html>


More information about the Interest mailing list