I have downloaded Android Studio and I am using a x86 AVD to run my application. I am able to deploy my application to the emulator but it always shows a blank white screen. This happens only if my application has some QML code, if I run a pure C++ example then the app is correctly displayed. Code below.
import QtQuick 2.6
import QtQuick.Controls 1.0
ApplicationWindow{
color: "blue"
height: 500; width: 400
Text {
id: name
text: qsTr("text")
anchors.centerIn: parent
}
}
http://doc.qt.io/qt-5/qml-qtquick-controls-applicationwindow.html#details says:
Note: By default, an
ApplicationWindow
is not visible.
So you have to set
visible: true
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.