Hi

I'm following the SameGame example -
http://doc.qt.nokia.com/4.7-snapshot/qml-advtutorial.html. The example runs
fine with qmlviewer, but I'm trying to generate a release for it. I have a
main.cpp like this:

#include <QApplication>
#include <QDeclarativeView>

int main(int argc, char *argv[])
{

        QApplication app(argc, argv);

        QDeclarativeView view;
        view.setSource(QUrl::fromLocalFile("samegame.qml"));
        view.show();

        return app.exec();

}

And although the example works fine with qmlviewer, when I try to run
samegame binary, it says:
file:samegame.qml:28:3: Button is not a type
                Button {
                ^

All the files are in the same directory. Do I need to create a resource file
or is there something else I should be doing?

regards,

-- 
Brain: Prepare yourself for your 15 minutes of fame
Pinky: after that, can I have 15 minutes of Macarena?

  °v°  Sulamita Garcia
 /(_)\ http://sulamita.net/
  ^ ^
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to