Qt 6.11 is out! See what's new in the release
blog
"Type Dialog unavailable" in Qt 5.9
-
I use Qt Quick Dialog on my Android app, and the app quits as soon as I run it with the following error:
W libAppTest.so: (null):0 ((null)): QQmlApplicationEngine failed to load component W libAppTest.so: (null):0 ((null)): qrc:/main.qml:35 Type Dialog unavailable W libAppTest.so: file:///data/data/org.qtproject.example.AppTest/qt-reserved-files/qml/QtQuick/Dialogs/DefaultDialogWrapper.qml:45 "qml": no such directoryHere is my source code:
import QtQuick 2.7 import QtQuick.Controls 2.0 import QtQuick.Layouts 1.3 import QtQuick.Dialogs 1.2 ApplicationWindow { visible: true width: 640 height: 480 title: qsTr("Hello World") Page { Label { text: qsTr("Hello") anchors.centerIn: parent MouseArea { anchors.fill: parent onClicked: { dialog.open(); } } } } Dialog { id: dialog title: "Title" } }How do I get it to work?
-
@kimdata Perhaps it's related to QTBUG-60918.
-
I use Qt Quick Dialog on my Android app, and the app quits as soon as I run it with the following error:
W libAppTest.so: (null):0 ((null)): QQmlApplicationEngine failed to load component W libAppTest.so: (null):0 ((null)): qrc:/main.qml:35 Type Dialog unavailable W libAppTest.so: file:///data/data/org.qtproject.example.AppTest/qt-reserved-files/qml/QtQuick/Dialogs/DefaultDialogWrapper.qml:45 "qml": no such directoryHere is my source code:
import QtQuick 2.7 import QtQuick.Controls 2.0 import QtQuick.Layouts 1.3 import QtQuick.Dialogs 1.2 ApplicationWindow { visible: true width: 640 height: 480 title: qsTr("Hello World") Page { Label { text: qsTr("Hello") anchors.centerIn: parent MouseArea { anchors.fill: parent onClicked: { dialog.open(); } } } } Dialog { id: dialog title: "Title" } }How do I get it to work?