[Qt-qml] Multiple qml files in one .cpp
henrik.hartz at nokia.com
henrik.hartz at nokia.com
Mon Aug 23 08:06:47 CEST 2010
Hi,
You should probably try running your release code with
QML_IMPORT_TRACE
defined, which will print the import paths to the console;
http://doc.trolltech.com/4.7-snapshot/qdeclarativedebugging.html
<http://doc.trolltech.com/4.7-snapshot/qdeclarativedebugging.html>Cheers,
Henrik
On Aug 20, 2010, at 5:12 PM, ext Sulamita Garcia wrote:
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/
^ ^
<ATT00001..txt>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100823/3c9eb8ab/attachment.html
More information about the Qt-qml
mailing list