2016-01-03 18 views
2

我正在用Qt Creator開發應用程序。我只想爲特定的Dialog.I創建XML使用佈局,但是如何將此XML添加到項目中?Qt-從Android資源添加自定義XML

我加入這個XML上main_activity目錄(MyApplication的\ Android的源\ RES \佈局

enter image description here

但是當我嘗試編譯,我創建這個後出現此錯誤:

BUILD FAILED 
D:\1ADDDT\android-sdk2\android-sdk2\tools\ant\build.xml:716: The following error occurred while executing this line: 
D:\1ADDDT\android-sdk2\android-sdk2\tools\ant\build.xml:730: Compile failed; see the compiler error output for details. 

我應該將這個XML添加到資源(.qrc)或什麼?

這裏是我的build.xml:

enter image description here

回答

0

使用工具:背景作爲屬性之一,將其設置爲.MainActivity

+0

您可能希望單擊答案上的複選標記,而不是將標題添加到標題中。這也標誌着問題的解決。 –

+0

@BoPersson我編輯它。謝謝你的評論。 – AFN