Merge pull request #21602 from paroj:hidpi

pull/21632/head
Alexander Alekhin 3 years ago
commit d3e0193c8a
  1. 3
      modules/highgui/src/window_QT.cpp

@ -529,6 +529,9 @@ static int icvInitSystem(int* c, char** v)
//"For any GUI application using Qt, there is precisely one QApplication object"
if (!QApplication::instance())
{
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true);
#endif
new QApplication(*c, v);
setlocale(LC_NUMERIC,"C");

Loading…
Cancel
Save