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. How to install QtQuick.Window version 2.2
Qt 6.11 is out! See what's new in the release blog

How to install QtQuick.Window version 2.2

Scheduled Pinned Locked Moved QML and Qt Quick
9 Posts 3 Posters 7.6k 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.
  • H Offline
    H Offline
    houmingc
    wrote on last edited by
    #1

    root@ubuntu:/home/ste/Desktop# sudo ./untitled1
    QML debugging is enabled. Only use this in a safe environment.
    QQmlApplicationEngine failed to load component
    qrc:///main.qml:3 module "QtQuick.Window" version 2.2 is not installed

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

      QtQuick.Window version 2.2 is part of Qt 5.4.0 release, so you need that for it to work (or downgrade to 2.1).

      (Z(:^

      1 Reply Last reply
      0
      • H Offline
        H Offline
        houmingc
        wrote on last edited by
        #3

        i just install Qt5.4.0 yesterday. what is the command to download QtQuick.Window version 2.2

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

          It is already included in Qt 5.4. If you have it installed, you also have QtQuick.Window version 2.2. There is no need to download anything more.

          (Z(:^

          1 Reply Last reply
          0
          • H Offline
            H Offline
            houmingc
            wrote on last edited by
            #5

            But when i run QML Qt example. it prompted informing me
            “QtQuick.Window” version 2.2 is not installed

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

              Something must be wrong, then. Are you running the example from within Qt Creator or standalone?

              (Z(:^

              1 Reply Last reply
              0
              • H Offline
                H Offline
                houmingc
                wrote on last edited by
                #7

                yes, i am running the example from within Qt Creator

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

                  Weird. QtC usually makes sure that the whole Qt environment is properly linked and set-up for development.

                  (Z(:^

                  1 Reply Last reply
                  0
                  • JKSHJ Offline
                    JKSHJ Offline
                    JKSH
                    Moderators
                    wrote on last edited by
                    #9

                    What kit are you using to build and run the project?

                    Open the project, and click on the "Debug"/"Release" button on the bottom-left (above the green "Run" arrow). This will show your kit -- it should be something like "Desktop Qt 5.4.0 MinGW 32bit"

                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                    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