Use AA_UseHighDpiPixmaps in the example

it's a best practice
This commit is contained in:
Sergio Martins
2019-07-20 17:25:25 +01:00
parent 108cd96afe
commit fd5b2ad2f1

View File

@@ -90,6 +90,7 @@ public:
int main(int argc, char **argv)
{
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QApplication app(argc, argv);
app.setOrganizationName(QStringLiteral("KDAB"));
app.setApplicationName(QStringLiteral("Test app"));