Hi,
I am trying to display QML from a C++ application as follows:
#include <QApplication>
#include <QtDeclarative>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QDeclarativeView view;
view.setSource(QUrl::fromLocalFile("MyItem.qml"));
// etc.
}
I am using:
Qt Creator 2.0.1
Based on Qt 4.7.0 (32 bit)
Built on Sep 9 2010 at 14:27:59
From revision 113d4c5618
Anyway, it compiles and runs just fine on the simulator, but when I try to generate a .sis file using the other Qt version (for a Symbian device), it says there is no such thing as a QDeclarativeView type:
'QDeclarativeView' was not declared in this scope
Expected ';' before 'view'
I guess it may have to do with the fact that the Symbian Qt version is 4.6 as per this thread:
http://discussion.forum.nokia.com/fo...860#post797860
and this is the upgrade:
http://wiki.forum.nokia.com/index.ph...allation_guide
So I have 2 questions.
1. If I upgrade my SDK to use Qt 4.7 for Symbian devices as well, will this problem go away? and
2. Would I be able to get this application signed for Ovi Store purposes, as of right now?
The second question is of course the main concern.
Any advice will be much appreciated!
Maria



