相关疑难解决方法(0)

使用qt quick 2应用程序的qml和c ++

我有一个主窗口的qml GUI.我刚创建了一个qt quick2应用程序,并将主窗口的qml GUI复制并粘贴到main.qml.当我运行应用程序时,它显示空白窗口,以下是我的qml日志:

    QML debugging is enabled. Only use this in a safe environment.
Both point size and pixel size set. Using pixel size. 
Both point size and pixel size set. Using pixel size. 
Both point size and pixel size set. Using pixel size. 
file:///home/khajvah/build-convQML-Desktop_Qt_5_1_0_GCC_64bit-Debug/qml/convQML/main.qml:99:9: QML Text: Cannot anchor to an item that isn't a parent or sibling.
file:///home/khajvah/build-convQML-Desktop_Qt_5_1_0_GCC_64bit-Debug/qml/convQML/main.qml:31:9: QML BasicButton: Cannot anchor to an item that isn't a parent or sibling.
file:///home/khajvah/Qt5.1.0/5.1.0/gcc_64/qml/QtQuick/Controls/Styles/Base/ToolButtonStyle.qml:73:9: QML Image: Cannot open: file:///home/khajvah/build-convQML-Desktop_Qt_5_1_0_GCC_64bit-Debug/logout-512.png
file:///home/khajvah/Qt5.1.0/5.1.0/gcc_64/qml/QtQuick/Controls/Styles/Base/ToolButtonStyle.qml:73:9: …
Run Code Online (Sandbox Code Playgroud)

c++ qt qml

8
推荐指数
1
解决办法
1万
查看次数

标签 统计

c++ ×1

qml ×1

qt ×1