Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QQuickView not recognized as a class
Qt 6.11 is out! See what's new in the release blog

QQuickView not recognized as a class

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 872 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
    abanksdev
    wrote on last edited by
    #1

    I have a very strange issue, i've included #include <QQuickView> in my header file, and tried including in my cpp file AND tried both at the same time and Qt does not seem to recognize it as a file or class. I'm trying to use QML in one of my QWidget's frames and QQuickView would enable me to do that (allegedly). Is there a package I'm missing?

    1 Reply Last reply
    0
    • A abanksdev

      #include <QQmlApplicationEngine> is also not recognized nor is #include <QQuickView>

      mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #3

      @abanksdev
      Hi
      and you have
      QT += qml
      QT += quick
      in .pro file ?

      (if not, run qmake after adding it )

      The docs always list modules needed for a given class
      alt text

      1 Reply Last reply
      2
      • A Offline
        A Offline
        abanksdev
        wrote on last edited by
        #2

        #include <QQmlApplicationEngine> is also not recognized nor is #include <QQuickView>

        mrjjM 1 Reply Last reply
        0
        • A abanksdev

          #include <QQmlApplicationEngine> is also not recognized nor is #include <QQuickView>

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #3

          @abanksdev
          Hi
          and you have
          QT += qml
          QT += quick
          in .pro file ?

          (if not, run qmake after adding it )

          The docs always list modules needed for a given class
          alt text

          1 Reply Last reply
          2
          • A Offline
            A Offline
            abanksdev
            wrote on last edited by
            #4

            @abanksdev said in QQuickView not recognized as a class:

            QQuickView

            Ah that was it thank you!

            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