×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    5

    Compilation issue for Symbian device -- QDeclarativeView not found

    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

  2. #2
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: Compilation issue for Symbian device -- QDeclarativeView not found

    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
    Yes.
    2. Would I be able to get this application signed for Ovi Store purposes, as of right now?
    No. You will be able to at some point in the not too distant future, probably for Qt 4.7.2 or later I'd guess.
    You can't use QML before version 4.7 (well you could possibly compile the Qt Declarative module yourself and bundle it with your app but I don't think that's a recommended approach) so you have to wait if you want to use it and deploy to Ovi in any case.

    P.S. Technically there's no problem with getting your application signed but Ovi Store isn't accepting Qt 4.7 apps for Symbian (with smart installer of course) yet.
    Last edited by Sorcery-ltd; 2011-01-06 at 10:35. Reason: Add P.S.

Similar Threads

  1. Replies: 4
    Last Post: 2009-10-17, 09:06
  2. Compilation of rss freezes in Carbide.vs 3.0 - problem found
    By omahlama in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2008-01-16, 19:46
  3. Replies: 16
    Last Post: 2007-07-16, 05:25
  4. Issue with auto start app at device boot up for Symbian 9.1 OS
    By Shweta Jain in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 1
    Last Post: 2007-06-02, 13:56

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×