Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Wrong QML_IMPORT_PATH value in Hangman example
Qt 6.11 is out! See what's new in the release blog

Wrong QML_IMPORT_PATH value in Hangman example

Scheduled Pinned Locked Moved Unsolved Qt 6
5 Posts 3 Posters 835 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.
  • D Offline
    D Offline
    Dmitriano
    wrote on last edited by Dmitriano
    #1

    I do not understand quite enough what QML_IMPORT_PATH is, for example what does

    QML_IMPORT_PATH = $$PWD/hangmangame.h
    

    mean in hangman\hangman.pro` in QT 6.6.2?

    Is not it simply a typo?

    My understanding is that QML_IMPORT_PATH is something related to QML files, but not to C++ headers.

    Pablo J. RoginaP KroMignonK 2 Replies Last reply
    0
    • D Dmitriano

      I do not understand quite enough what QML_IMPORT_PATH is, for example what does

      QML_IMPORT_PATH = $$PWD/hangmangame.h
      

      mean in hangman\hangman.pro` in QT 6.6.2?

      Is not it simply a typo?

      My understanding is that QML_IMPORT_PATH is something related to QML files, but not to C++ headers.

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @Dmitriano said in Wrong QML_IMPORT_PATH value in Hangman example:

      QML_IMPORT_PATH

      Maybe documentation clarifies its purpose

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      D 1 Reply Last reply
      0
      • Pablo J. RoginaP Pablo J. Rogina

        @Dmitriano said in Wrong QML_IMPORT_PATH value in Hangman example:

        QML_IMPORT_PATH

        Maybe documentation clarifies its purpose

        D Offline
        D Offline
        Dmitriano
        wrote on last edited by Dmitriano
        #3

        @Pablo-J-Rogina Could you clarify what does it clarify?

        1 Reply Last reply
        0
        • D Dmitriano

          I do not understand quite enough what QML_IMPORT_PATH is, for example what does

          QML_IMPORT_PATH = $$PWD/hangmangame.h
          

          mean in hangman\hangman.pro` in QT 6.6.2?

          Is not it simply a typo?

          My understanding is that QML_IMPORT_PATH is something related to QML files, but not to C++ headers.

          KroMignonK Offline
          KroMignonK Offline
          KroMignon
          wrote on last edited by
          #4

          @Dmitriano said in Wrong QML_IMPORT_PATH value in Hangman example:

          My understanding is that QML_IMPORT_PATH is something related to QML files, but not to C++ headers.

          I agree with you, looks also strange to me.
          IFAIK, QML_IMPORT_PATH should only contains directories and not files. By the way, if it contains files, they should be only QML files, I guess.
          Maybe a bug?

          It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

          D 1 Reply Last reply
          0
          • KroMignonK KroMignon

            @Dmitriano said in Wrong QML_IMPORT_PATH value in Hangman example:

            My understanding is that QML_IMPORT_PATH is something related to QML files, but not to C++ headers.

            I agree with you, looks also strange to me.
            IFAIK, QML_IMPORT_PATH should only contains directories and not files. By the way, if it contains files, they should be only QML files, I guess.
            Maybe a bug?

            D Offline
            D Offline
            Dmitriano
            wrote on last edited by
            #5

            @KroMignon if I remove

            QML_IMPORT_PATH = $$PWD/hangmangame.h
            

            from sample .pro nothing changes, it still compiles and runs.

            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