UI Scaling

The user interfaces of OctoMY strive for using best practices for UI scaling. In Qt the best practices are outlined here.

In summary we do the following:
  • Disable application attribute Qt::AA_EnableHighDpiScaling to signal that our application does not want autmatic DPI help.
  • Enable application attribute Qt::AA_DisableHighDpiScaling to signal that our application is HighDPI Aware.
  • Use the qreal versions of the QPainter drawing API.
  • Size windows and dialogs in relation to the screen size.
  • Calculated sizes in layouts from font metrics or screen size.

Comments