我在Qt Creator中有一个Qt项目。我有一个<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/linear_interpolator">
<scale
android:fromXScale="0.0"
android:toXScale="1.0"
android:fromYScale="0.0"
android:toYScale="1.0"
android:pivotX="50%"
android:pivotY="50%"
android:duration="250" />
</set>
文件注册了QML,一切正常。但出于某种原因,&#34;项目&#34; Qt Creator的视图并没有像任何示例项目一样显示QML文件夹(附带屏幕截图)。
我只是好奇。为什么QML文件夹没有显示在我的项目中,但它出现在示例项目中?
答案 0 :(得分:2)
您需要将它们添加到您的.pro文件中(如果我没错,那就足以将它们附加到DISTFILES
)。
答案 1 :(得分:1)
您必须将文件添加到DISTFILES
指令。