Missing modules in qml viewer



  • I just installed QtCreator 2.2 a couple of days ago and I have a strange issue with the qml viewer.

    If, for example, I use a Web View in my qml file it will show up fine in the designer and load the page etc just fine. But when I go to try out my project in the qml viewer (by hitting the big green "play" arrow) it complains about not being able to find the QtWebKit module.

    The same thing happens if I try to import qml 1.0 instead of qt 4.7, for example.

    Do I need to have these modules installed separately to Creator to use them in the viewer, or is something else causing this issue?

    I am on Ubuntu 10.10 (64 bit) and also have the Qt SDK 1.1 installed.



  • I seem to have found my problem. Apparently if I change the "import QmlProject 1.0" in the *.qmlproject file to "import QmlProject 1.1" everything works just fine.

    I think this might be a side effect of creating the project in the Qt SDK 1.1 (with creator 2.1) and then working with it in Creator 2.2 or something.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.