Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QtQuick.Dialogs is missing Qt 6.1.3 / Qt 6.2.0



  • I actually have a problem with QtQuick developement. For the app I have to use the module QtQuick.Dialogs 1.2 for a MessageDialog. Here is my system configuration:

    • Kernel: 5.4.0-94-generic x86_64 bits: 64
    • compiler: gcc v: 9.3.0 Desktop: Xfce 4.16.0
    • tk: Gtk 3.24.20
    • Distro: Linux Mint 20.3 Una
    • base: Ubuntu 20.04 focal

    Using Qt Creator 4.15.0 and Android Qt 6.1.3 Clang armeabi-v7a kit. My target device is a Samsung A5 (2016) which has support for armeabi-v7a and armeabi. Here is a code-snippet from the MessageDialog:

    import QtQuick.Dialogs 1.2
    
    MessageDialog {
                id: msgDialog
                title: "Titel"
                text: "Hinweistext"
            }
    

    While compiling I get an error as follows:
    Warning: QML import could not be resolved in any of the import paths: QtQuick.Dialogs

    Nethertheless, I can install the app on my phone, but when I try to open it, it crashs.
    Any ideas how I can download and install the missing module? The same problem I have when using
    Android Qt 6.2.0 Clang armeabi-v7a kit.


  • Moderators

    I think it's not available in Qt 6, but the one from Labs should work: https://doc.qt.io/qt-6/qml-qt-labs-platform-messagedialog.html


Log in to reply