Cater for HiDPI display, ticket #257, props bitaround

This commit is contained in:
gitlost 2022-04-10 18:34:51 +01:00
parent 69876619dd
commit d00a87c79a

View File

@ -22,6 +22,9 @@ int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(resources);
#if QT_VERSION >= 0x50600
QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
#if QT_VERSION >= 0x50400
/* Suppresses "Qt WebEngine seems to be initialized from a plugin" warning */
QApplication::setAttribute(Qt::AA_ShareOpenGLContexts);