mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
Merge pull request #21602 from paroj:hidpi
This commit is contained in:
commit
d3e0193c8a
@ -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…
Reference in New Issue
Block a user