Hi,
I moved some GUI with backend code into QML plugin, but when I load page in main application, GUI controls are very small on Android. In application I set
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
in main before QApplication gets created. But it seems to be not propagated to QML plugin GUI. ADB logcat shows a lot of warnings like
Page.qml:924qrc:/qml/VPlayApps/essential/Page.qml:924: ReferenceError: dp is not defined
dp() is defined in App QML type and there is no App type in plugin.
I tried to call the same setAttribute() inside plugin. But it didn’t help.
Any idea how to fix this?
Regards