Qt: How to use AA_UseHighDpiPixmaps for two monitors

I use two monitors: Retina and Normal.

I read this article http://blog.qt.io/blog/2013/04/25/retina-display-support-for-mac-os-ios-and-x11/

There is:

QIcon :: pixmap () has been modified to return a large raster map on high resolution systems. This behavior change may violate existing code, so the application attribute AA_UseHighDpiPixmaps controls it:

qApp-> SetAttribute (Qt :: AA_UseHighDpiPixmaps);

When I set this attribute and run the program with one of the main monitors, all the images look normal.

But if two monitors are active: the images in a regular monitor look awful. Qt selects @ 2x images for a conventional monitor and resizes them.

How to solve my problem using two monitors?

+6
source share

Source: https://habr.com/ru/post/986050/


All Articles