Search code examples
qtqt4qmlqt-quickqt3d

How to compile this qt program(There is no any pro file)?


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


Solution

  • It does not contain any source code, just qml files. It is entirely written in interpreted QML. You would need to run the "main.qml", which is the "game.qml" here, through the qml viewer as follows:

    qmlviewer-qt4 game.qml
    

    or

    qmlviewer-qt4 game.qml
    

    These applications are installed by the qt/qtquick and qtquick1 packages on my Linux box.