Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › EnableHighDpiScaling does not work in GUI from QML plugin

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #24740

    Volker

    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

    #24741

    Alex
    Felgo Team

    Hi Volker,

    this is a bit hard to investigate without more info on the actual project structure and how the pieces are put together. Could you create a minimal example project that reproduces the issue and send it to support@felgo.com so we can have a closer look?

    Cheers,
    Alex

    #24744

    Volker

    Hi Alex,

    I sent you example project and screenshots.

    Regards

    #24748

    Volker

    Hi Alex,

    I resent you an example as zip, but from gmail. Please check spam folder as well.

    Regards

Viewing 4 posts - 1 through 4 (of 4 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded