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. Error with the IDE not being able to recongnize qt_add_qml_module

Error with the IDE not being able to recongnize qt_add_qml_module

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 1.3k Views 2 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.
  • S Offline
    S Offline
    Silver-will
    wrote on last edited by Silver-will
    #1

    Just started working through the qt creator documentation within the IDE. But have come across an error whereby i'm told "qt_add_qml_module" is an unknown cmake command every time i try to add it into the cmakelists.txt file.
    Source code is:

    qt_add_qml_module(apptransitions
         URI transitions
         VERSION 1.0
         QML_FILES main.qml Page.qml
         RESOURCES qt-logo.png)
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Which version of Qt are you using to build your application ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Which version of Qt are you using to build your application ?

        S Offline
        S Offline
        Silver-will
        wrote on last edited by
        #3

        @SGaist
        QT 6.3.1

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Did you check your kit configuration ?
          Which version of cmake are you using ?
          Did you check its configuration ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          S 1 Reply Last reply
          0
          • SGaistS SGaist

            Did you check your kit configuration ?
            Which version of cmake are you using ?
            Did you check its configuration ?

            S Offline
            S Offline
            Silver-will
            wrote on last edited by
            #5

            @SGaist
            I installed a newer version of cmake and that seems to have fixed the problem. Thanks for the help.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Great !

              Then please mark the thread as solved using the "Topic Tools" button or the three dotted menu beside the answer that you deem correct so that other forum users may know a solution has been found :-)

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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