Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Unknown module QQuickWidget
Qt 6.12 LTS is out! See what's new in the release blog

Unknown module QQuickWidget

Scheduled Pinned Locked Moved Solved QML and Qt Quick
11 Posts 4 Posters 2.0k 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.
  • A Offline
    A Offline
    Ashutosh_Sachdeva
    wrote on last edited by
    #1

    Hi,

    I'm using QT 5.13.1 and while using QTQuickWidgets imy project is throwing the error

    ":-1: error: Unknown module(s) in QT: qquickwidget QQuickWidget"

    i have updated Qt as well tried with giving the path but still the error is there.

    jsulmJ sierdzioS 2 Replies Last reply
    0
    • A Ashutosh_Sachdeva

      Hi,

      I'm using QT 5.13.1 and while using QTQuickWidgets imy project is throwing the error

      ":-1: error: Unknown module(s) in QT: qquickwidget QQuickWidget"

      i have updated Qt as well tried with giving the path but still the error is there.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Ashutosh_Sachdeva Do you have

      QT += quickwidgets
      

      in your pro file as described here https://doc.qt.io/qt-5/qquickwidget.html ?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      A 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Ashutosh_Sachdeva Do you have

        QT += quickwidgets
        

        in your pro file as described here https://doc.qt.io/qt-5/qquickwidget.html ?

        A Offline
        A Offline
        Ashutosh_Sachdeva
        wrote on last edited by
        #3

        @jsulm yes i have included that in .pro

        J.HilkJ jsulmJ 2 Replies Last reply
        0
        • A Ashutosh_Sachdeva

          @jsulm yes i have included that in .pro

          J.HilkJ Offline
          J.HilkJ Offline
          J.Hilk
          Moderators
          wrote on last edited by
          #4

          @Ashutosh_Sachdeva
          ok, before we go any further, take a look at this example:
          https://doc.qt.io/qt-5/qtquick-quickwidgets-quickwidget-example.html

          It should be part of your Qt /QtCreator package. See if that compiles.


          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


          Q: What's that?
          A: It's blue light.
          Q: What does it do?
          A: It turns blue.

          1 Reply Last reply
          1
          • A Ashutosh_Sachdeva

            Hi,

            I'm using QT 5.13.1 and while using QTQuickWidgets imy project is throwing the error

            ":-1: error: Unknown module(s) in QT: qquickwidget QQuickWidget"

            i have updated Qt as well tried with giving the path but still the error is there.

            sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            @Ashutosh_Sachdeva said in Unknown module QQuickWidget:

            :-1: error: Unknown module(s) in QT: qquickwidget QQuickWidget

            quickwidgets No preceding q and an s at the end. You need to get this string exactly right in your .pro file. And remove QQuickWidget from there, it's not the module name.

            (Z(:^

            A 1 Reply Last reply
            3
            • A Ashutosh_Sachdeva

              @jsulm yes i have included that in .pro

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Ashutosh_Sachdeva said in Unknown module QQuickWidget:

              yes i have included that in .pro

              But wrongly, as @sierdzio explained...

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • sierdzioS sierdzio

                @Ashutosh_Sachdeva said in Unknown module QQuickWidget:

                :-1: error: Unknown module(s) in QT: qquickwidget QQuickWidget

                quickwidgets No preceding q and an s at the end. You need to get this string exactly right in your .pro file. And remove QQuickWidget from there, it's not the module name.

                A Offline
                A Offline
                Ashutosh_Sachdeva
                wrote on last edited by
                #7

                @sierdzio tried but still facing same issue

                jsulmJ 1 Reply Last reply
                0
                • A Ashutosh_Sachdeva

                  @sierdzio tried but still facing same issue

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Ashutosh_Sachdeva Please show your pro file.
                  And also you have to do complete rebuild after changing pro file: delete build directory, run qmake and build...

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  A 1 Reply Last reply
                  3
                  • jsulmJ jsulm

                    @Ashutosh_Sachdeva Please show your pro file.
                    And also you have to do complete rebuild after changing pro file: delete build directory, run qmake and build...

                    A Offline
                    A Offline
                    Ashutosh_Sachdeva
                    wrote on last edited by
                    #9

                    @jsulm

                    #-------------------------------------------------

                    Project created by QtCreator 2019-11-07T12:35:48

                    #-------------------------------------------------

                    QT += core gui

                    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

                    TARGET = Resize
                    TEMPLATE = app

                    SOURCES += main.cpp
                    mainwindow.cpp

                    HEADERS +=
                    mainwindow.h

                    FORMS += mainwindow.ui

                    QT += qquickwidget
                    #QT += qml quick

                    #QT += quickwidget

                    OTHER_FILES += ControlBar.qml

                    sierdzioS J.HilkJ 2 Replies Last reply
                    0
                    • A Ashutosh_Sachdeva

                      @jsulm

                      #-------------------------------------------------

                      Project created by QtCreator 2019-11-07T12:35:48

                      #-------------------------------------------------

                      QT += core gui

                      greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

                      TARGET = Resize
                      TEMPLATE = app

                      SOURCES += main.cpp
                      mainwindow.cpp

                      HEADERS +=
                      mainwindow.h

                      FORMS += mainwindow.ui

                      QT += qquickwidget
                      #QT += qml quick

                      #QT += quickwidget

                      OTHER_FILES += ControlBar.qml

                      sierdzioS Offline
                      sierdzioS Offline
                      sierdzio
                      Moderators
                      wrote on last edited by
                      #10

                      @Ashutosh_Sachdeva said in Unknown module QQuickWidget:

                      QT += qquickwidget

                      Not qquickwidget but quickwidgets!

                      (Z(:^

                      1 Reply Last reply
                      2
                      • A Ashutosh_Sachdeva

                        @jsulm

                        #-------------------------------------------------

                        Project created by QtCreator 2019-11-07T12:35:48

                        #-------------------------------------------------

                        QT += core gui

                        greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

                        TARGET = Resize
                        TEMPLATE = app

                        SOURCES += main.cpp
                        mainwindow.cpp

                        HEADERS +=
                        mainwindow.h

                        FORMS += mainwindow.ui

                        QT += qquickwidget
                        #QT += qml quick

                        #QT += quickwidget

                        OTHER_FILES += ControlBar.qml

                        J.HilkJ Offline
                        J.HilkJ Offline
                        J.Hilk
                        Moderators
                        wrote on last edited by
                        #11

                        @Ashutosh_Sachdeva
                        still not what @sierdzio said

                        also, you didn't check the example I linked, or you could have simply copy and pasted it from there
                        035f8d9c-84a9-4ae5-b2c2-b9ebf158a60a-image.png


                        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                        Q: What's that?
                        A: It's blue light.
                        Q: What does it do?
                        A: It turns blue.

                        1 Reply Last reply
                        1

                        • Login

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