Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2010

    Question What is the difference between QDeclarativeView and QmlApplicationViewer?


    I've been working on a QML/C++ project for a while. Now I want to start using Qt Components on that project. So I created a new project in Qt Creator with Qt Component support (Harmattan). All I need to do is to copy the code from the existing project and add the needed Components.

    However, I ran into a potential problem. I noticed that Qt Creator seems to now use QDeclarativeView instead of QmlApplicationViewer, in which I did my original project. So my question is what is the difference between those two? What should I keep in mind if I attempt to transfer my code from using QmlApplicationViewer to QDeclarativeView?

    In my project I'm using QSqlTableModel in the C++ code and in QML I use ListView which uses it as the model. It took me quite a bit of time to figure out how to do this, so I'm a bit worried that this might break.

    Thank you for your help.

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Ahmedabad, Gujarat, India

    Re: What is the difference between QDeclarativeView and QmlApplicationViewer?

    Hello Sasler,

    QApplicationViewer is nothing else but an Wrapper over QDeclarativeView , with some additional functions just to help developers, so there is no problem if you use QDeclarativeView instead of QApplicationViewer.


Similar Threads

  1. What is the difference between Widget and dialog?
    By rahul.kulshreshtha in forum Qt
    Replies: 1
    Last Post: 2010-09-20, 13:42
  2. Replies: 0
    Last Post: 2008-04-25, 07:14
  3. Replies: 3
    Last Post: 2008-02-22, 21:28
  4. Replies: 2
    Last Post: 2004-04-01, 09:07
  5. What is the difference between PersonalJava and MIDP?
    By Nokia_FAQ in forum PersonalJava
    Replies: 1
    Last Post: 2002-05-13, 16:50

Posting Permissions

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