enable high dpi scaling when qt version >= 5.6.0 (#1008)
This commit is contained in:
parent
2f861070de
commit
a3bf023506
|
@ -41,6 +41,11 @@ static bool CheckArgs(const QStringList &args);
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
|
||||
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
#endif
|
||||
|
||||
QApplication app(argc, argv);
|
||||
|
||||
#if QT_VERSION < 0x050000
|
||||
|
|
Loading…
Reference in New Issue