GGD-OpenSpaceNet
GGD-OpenSpaceNet copied to clipboard
OSN GUI Doesn't Work Right With Hi-DPI Monitors
If the text size is is greater than 100%, the OSN GUI is not rendered correctly:
The UI must be laid out in resolution and DPI-independent way.
Also looks similar on Windows with HiDPI displays. Not good.
Logging this as a potential solution:
int main(int argc, char *argv[])
{
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication app(argc, argv);
return app.exec();
}
Related to #152
Added a.setAttribute(Qt::AA_EnableHighDpiScaling);
to address this issue, functionality that was introduced in qt5.6. This function makes Qt scale the main (device independent) coordinate system according to display scale factors provided by the operating system. This needs to be tested on a Hi-DPI monitor before it can be closed