Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Solved]QQuick 2.0 not installed
Forum Updated to NodeBB v4.3 + New Features

[Solved]QQuick 2.0 not installed

Scheduled Pinned Locked Moved Installation and Deployment
14 Posts 4 Posters 32.4k 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.
  • C Offline
    C Offline
    chaos6
    wrote on last edited by
    #4

    I install Qt5 and in my Qt creator when run examples everything go right but the code appear in error area (meaning like Viewport when I type it, it show under it red line and i can't find it in the completer)
    and the QtQuick 2.0 it say module "QtQuick" version 2.0 is not installed import QtQuick 2.0.
    (I install Qt5 in folder and Qt in anther folder)

    In advance thanx for help

    http://smashcs.wordpress.com/

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #5

      I'm sorry but your English is a bit hard to understand. I will do some guess work - if I misunderstand, please ask again :)

      Qt Creator might have an outdated code model if it treats good code as an error. To update the model, go to Tools=>QML/JS=>Reset code model. It usually works well.

      I don't understand what you mean in the second part of your post. I think you might have run into problems because you are trying to run Qt4 code under Qt5. There are some (small) source-incompatible changes in Qt5, that you have to address. You can search the docs and wiki for more info, but just as a quick recap:

      • in .pro file, add quick module to QT variable
      • change all QtDeclarative into QtQuick in includes
      • change declarative class names (QDeclarativeView=>QQuickView)

      I think that is it. Given purely from memory, so I might got something wrong - in that case just consult the documentation.

      (Z(:^

      1 Reply Last reply
      0
      • C Offline
        C Offline
        chaos6
        wrote on last edited by
        #6

        thanks for reply and so sorry for my language and my project is Qt Quick UI and I didn't try to run Qt4 code under Qt5 I run Qt5 code in Qt Creator and it run but it show my code is error by the creator put red line under the code like when I type viewport {} it show under it red line why that and second how to add option to qmlviewer to make my enable to add opengl option.

        Thanx for reply and thanx for helping me...

        http://smashcs.wordpress.com/

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #7

          I have never used the viewport element. If the trick with reseting the code model does not work, I don't have any other trick up my sleeve.

          According to "docs":http://qt-project.org/doc/qt-5.0/qml-viewport.html, you need to include both QtQuick 2.0 and Qt3D 1.0 (Qt3D is now an integral part of Qt).

          As for OpenGL, I have no idea. I would guess it's enabled by default for QtQuick 2, but I'm not 100% sure (I use Mesa, and it works for me).

          (Z(:^

          1 Reply Last reply
          0
          • C Offline
            C Offline
            chaos6
            wrote on last edited by
            #8

            and the image for the Qt creator!http://img823.imageshack.us/img823/8541/captureyw.png(error show)!

            http://smashcs.wordpress.com/

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #9

              You have said you want to use QtQuick 2.0, but you are importing 1.0. Change that, resolve code conflicts that will occur, and come back :)

              (Z(:^

              1 Reply Last reply
              0
              • C Offline
                C Offline
                chaos6
                wrote on last edited by
                #10

                I don't use QtQuick 2.0 because it show me QtQuick 2.0 not install and the code above is work with no error just it show like what you see

                http://smashcs.wordpress.com/

                1 Reply Last reply
                0
                • sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #11

                  Ah, ok I finally got it. I think there was some trick to make Qt Creator look for additional plugins, but I cant remember what it was. Ask Tobias Hunger, he will know (or search for posts he has made, there was a similar conversation with him recently).

                  (Z(:^

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    Arikuti
                    wrote on last edited by
                    #12

                    In .pro file set qt5 import path
                    Ex:
                    QML_IMPORT_PATH =/opt/qt5/imports

                    1 Reply Last reply
                    1
                    • C Offline
                      C Offline
                      chaos6
                      wrote on last edited by
                      #13

                      Thanx all it solved :)

                      http://smashcs.wordpress.com/

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        Chicharito
                        wrote on last edited by
                        #14

                        Arlkutl your suggestion helped ..
                        thanks for the post ;)

                        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