Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [Solved] Both qml and c++

[Solved] Both qml and c++

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mrdebugM Offline
    mrdebugM Offline
    mrdebug
    wrote on last edited by
    #1

    Hi. I have written an application with Qt 5.2 using both c++ and qml.
    Now if I try to run it using QT 5.3.0 I obtain the error "QtQuick is not installed".
    I see that the wizard for create a new QtQuick application is not the same as in the past. I suppose that QtQuick is very changed now.

    Does anybody can send me a simple application with both c++ and Quick 2.0?

    Need programmers to hire?
    www.labcsp.com
    www.denisgottardello.it
    GMT+1
    Skype: mrdebug

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

      You can use "QQuickView":http://qt-project.org/doc/qt-5/qquickview.html instead of QQmlApplicationEngine in Qt 5.3.0 so that you wont need to change existing QML files.
      @
      QQuickView *view = new QQuickView;
      view->setSource(QUrl("qrc:/main.qml"));
      view->show();
      @

      157

      1 Reply Last reply
      0
      • mrdebugM Offline
        mrdebugM Offline
        mrdebug
        wrote on last edited by
        #3

        import QtQuick 2.0

        qrc:Qml/Qml/QMMainForm.qml:1:1: module "QtQuick" is not installed

        Need programmers to hire?
        www.labcsp.com
        www.denisgottardello.it
        GMT+1
        Skype: mrdebug

        1 Reply Last reply
        0
        • mrdebugM Offline
          mrdebugM Offline
          mrdebug
          wrote on last edited by
          #4

          The problem happens when I add to the resource file the file qt.conf with this resource path: ""/qt/etc/qt.conf.
          The file contains
          [Paths]
          Plugins=plugins
          Libraries=libs

          Need programmers to hire?
          www.labcsp.com
          www.denisgottardello.it
          GMT+1
          Skype: mrdebug

          1 Reply Last reply
          0
          • mrdebugM Offline
            mrdebugM Offline
            mrdebug
            wrote on last edited by
            #5

            Solved by coping the directory Qt/Qt5.3.1/5.3/gcc/qml/ in the application dir.

            Need programmers to hire?
            www.labcsp.com
            www.denisgottardello.it
            GMT+1
            Skype: mrdebug

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved