2

I download the code(a game made with qt 3d) from Qt learning websites

After decompressing it, all i found are some qml file and photos. There is no any c++ file or the pro file. How can i open this as a project not a file in the qt creator and run it?

Thanks

4

1 回答 1

3

它不包含任何源代码,仅包含 qml 文件。它完全用解释型 QML 编写。您需要通过 qml 查看器运行“main.qml”,即此处的“game.qml”,如下所示:

qmlviewer-qt4 game.qml

或者

qmlviewer-qt4 game.qml

这些应用程序由我的 Linux 机器上的 qt/qtquick 和 qtquick1 软件包安装。

于 2014-05-22T03:16:06.977 回答