Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [SOLVED] Qt 5.2 - quick1?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Qt 5.2 - quick1?

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 3 Posters 1.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.
  • O Offline
    O Offline
    overtime
    wrote on last edited by
    #1

    I keep getting this error:

    Project ERROR: Unknown module(s) in QT: quick1

    I found where in the code it is referenced but don't fully understand what is going on here. Can anyone explain?

    @equals(QT_MAJOR_VERSION, 5) {
    QT += quick1
    } else {
    QT += declarative
    }@

    I tried just changing it to quick2 but that gives same error.
    I'm using QT Creator 5.2

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stevenceuppens
      wrote on last edited by
      #2

      Hi

      it's "quick" -> without number

      @
      equals(QT_MAJOR_VERSION, 5) {
      QT += quick
      } else {
      QT += declarative
      }
      @

      Steven CEUPPENS
      Developer / Architect
      Mobile: +32 479 65 93 10

      1 Reply Last reply
      0
      • O Offline
        O Offline
        overtime
        wrote on last edited by
        #3

        Awesome, that solved the problem! Thanks!
        I wonder how the number got put in there and why it was there.

        Now I have a new problem:

        C:\Users\Darrel\Desktop\smartphonebrainscanner2-HelloWorld\main.cpp:1: error: QApplication: No such file or directory
        #include <QApplication>
        ^

        Is this file not apart of Qt creator? And should I make new post about this problem?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          stevenceuppens
          wrote on last edited by
          #4

          You have 3 Application Types:

          • QCoreApplication -> Command-Line App -> (needs module "core")
          • QGuiApplication -> Quick App -> (needs module "gui")
          • QApplication -> Widget App -> (needs module "widget")

          You are using quick, so you may change QApplication to

          @
          #include <QtGui/QGuiApplication>

          int main(int argc, char *argv[])
          {
          QGuiApplication app(argc, argv);

          ...
          
          return app.exec();
          

          }
          @

          Steven CEUPPENS
          Developer &#x2F; Architect
          Mobile: +32 479 65 93 10

          1 Reply Last reply
          0
          • EddyE Offline
            EddyE Offline
            Eddy
            wrote on last edited by
            #5

            bq. And should I make new post about this problem?

            Yes, and please add a descriptive title to it. It will help your posts get more attention.

            @steven: goe bezig!

            Qt Certified Specialist
            www.edalsolutions.be

            1 Reply Last reply
            0
            • O Offline
              O Offline
              overtime
              wrote on last edited by
              #6

              Perfect! Thanks for the info guys! :)

              1 Reply Last reply
              0
              • S Offline
                S Offline
                stevenceuppens
                wrote on last edited by
                #7

                Thanks Eddy! :)

                Steven CEUPPENS
                Developer &#x2F; Architect
                Mobile: +32 479 65 93 10

                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