3

I've created an application using Python 3.2 and PyQt4. When it runs on a higher resolution monitor like ~1900x1300 pixel densities the widget looks so small.

Is there any way we can make the app to adjust itself according to the DPI of the screen? As suggested in this qt doc I tried configuring the QT_DEVICE_PIXEL_RATIO but didn't work out. Please let me know how it can be done? FYI I'm using Windows 8.1.

TFA
  • 81
  • 10
  • How have you set the `QT_DEVICE_PIXEL_RATIO` environment variable? – three_pineapples Oct 07 '15 at 08:23
  • Though programmatic means exists for setting the environment variable, I added it manually. Also is there any way we can make the app run DPI unaware in PyQt4? – TFA Oct 07 '15 at 09:44
  • See also: http://stackoverflow.com/questions/24367355/automatic-rescaling-of-an-application-on-high-dpi-windows-platform I guess for PyQt4 this does not exist. – NoDataDumpNoContribution Nov 03 '16 at 14:48

0 Answers0