Qt创建者。Qt快速应用程序屏幕不显示';我的Android设备上没有显示

Qt创建者。Qt快速应用程序屏幕不显示';我的Android设备上没有显示,android,qt,qml,qtquick2,mainwindow,Android,Qt,Qml,Qtquick2,Mainwindow,我是Qt Creator的新手,我正在尝试创建一个简单的应用程序。到目前为止,它只有非常基本的主屏幕。 我已经编写了QML代码,并尝试在我的OnePlus One Android手机上运行它。 我拥有在手机上运行程序所需的所有组件,因为Qt示例都运行良好 应用程序构建并安装在我的设备上,但是它会在一个空白的黑屏上解析,上面没有任何内容。我已经尝试了大约两个小时不同的可能的解决方案,但没有任何效果。有人能给我指一下正确的方向吗 我的QML代码(图片已正确添加到目录中),其他内容不变: import

我是Qt Creator的新手,我正在尝试创建一个简单的应用程序。到目前为止,它只有非常基本的主屏幕。 我已经编写了QML代码,并尝试在我的OnePlus One Android手机上运行它。 我拥有在手机上运行程序所需的所有组件,因为Qt示例都运行良好

应用程序构建并安装在我的设备上,但是它会在一个空白的黑屏上解析,上面没有任何内容。我已经尝试了大约两个小时不同的可能的解决方案,但没有任何效果。有人能给我指一下正确的方向吗

我的QML代码(图片已正确添加到目录中),其他内容不变:

import QtQuick 2.3
import QtQuick.Window 2.2
import QtQuick.Controls 1.3

Window {
    id: applicationWindow1
    visible: true
    width: 360
    height: 360
    color: "#343434"


    Image {
        id: cammbutticon
        x: 208
        y: 169
        width: 150
        height: 150
        opacity: 1
        fillMode: Image.PreserveAspectFit
        anchors.verticalCenter: parent.verticalCenter
        anchors.horizontalCenter: parent.horizontalCenter
        source: "camera-icon.png"


        Rectangle {
            id: centRect
            width: 150
            height: 150
            opacity: 1
            color: "#00000000"
            radius: 35
            border.color: "#ef0707"
            border.width: 3

            MouseArea {
                id: mouseAreaCam
                anchors.fill: parent
                onClicked: 'GO TO CAMERA'
            }

        }
    }

    Image {
        id: exitman
        x: 473
        y: 338
        width: 150
        height: 120
        opacity: 1
        sourceSize.height: 250
        sourceSize.width: 250
        anchors.right: parent.right
        anchors.rightMargin: -15
        anchors.bottom: parent.bottom
        anchors.bottomMargin: -10
        source: "exitman.png"


        Rectangle {
            id: exitRect
            x: 37
            y: 12
            width: 100
            height: 100
            opacity: 1
            color: "#00000000"
            radius: 35
            border.width: 3
            border.color: "#ef0707"
            anchors.right: parent.right
            anchors.rightMargin: 20
            anchors.bottom: parent.bottom
            anchors.bottomMargin: 15

            MouseArea {
                id: mouseAreaExit
                anchors.fill: parent
                onClicked: Qt.quit()
            }

        }
    }
    Label {
        id: welcometext
        width: 227
        height: 130
        opacity: 1
        color: "#ef0707"
        text: qsTr("WELCOME TO THE APPLICATION")
        anchors.top: parent.top
        anchors.topMargin: -8
        styleColor: "#f9f9f9"
        style: Text.Normal
        font.bold: false
        font.pointSize: 20
        font.family: "Arial"
        verticalAlignment: Text.AlignVCenter
        horizontalAlignment: Text.AlignHCenter
        wrapMode: Text.WordWrap
        anchors.verticalCenterOffset: -123
        anchors.horizontalCenterOffset: 1
        anchors.centerIn: parent
    }
}

您的main.cpp可能也与此相关。控制台上有打印的东西吗?可能根本找不到QML文件,或者由于某些错误而退出。您是否尝试在桌面上运行?从那里开始通常比在安卓设备上开始更容易。此外,这一行看起来非常可疑:
onClicked:“GO TO CAMERA”
main.cpp可能也与此相关。控制台上有打印的东西吗?可能根本找不到QML文件,或者由于某些错误而退出。您是否尝试在桌面上运行?从那里开始通常比在安卓设备上开始更容易。此外,这一行看起来非常可疑:
onClicked:“GO TO CAMERA”
main.cpp可能也与此相关。控制台上有打印的东西吗?可能根本找不到QML文件,或者由于某些错误而退出。您是否尝试在桌面上运行?从那里开始通常比在安卓设备上开始更容易。此外,这句话看起来很可疑:
onclick:“转到摄像机”