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. qtConfig in qt 6,how it works?
Forum Updated to NodeBB v4.3 + New Features

qtConfig in qt 6,how it works?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 600 Views
  • 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.
  • B Offline
    B Offline
    bigbigbig
    wrote on last edited by
    #1

    28288710-22ef-4d53-9bea-4f76de9199a5-image.png

    I just got "qthavemodule" in manual

    4c04fbfd-61e6-480a-8e5d-1dc41b574d09-image.png

    so who can tell me ,how "qtConfig" works?

    C 1 Reply Last reply
    0
    • B bigbigbig

      28288710-22ef-4d53-9bea-4f76de9199a5-image.png

      I just got "qthavemodule" in manual

      4c04fbfd-61e6-480a-8e5d-1dc41b574d09-image.png

      so who can tell me ,how "qtConfig" works?

      C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      @bigbigbig qtHaveModule() and qtConfig() are defined in .../mkspecs/features/qt_functions.prf.

      The first looks for the named module in only the QT variable (as documented).

      The second is undocumented AFAICT, but looks for its argument in the list of Qt modules that are available in the QT variable and default private internal lists, considering dependencies and features enabled at Qt build time. This is likely only ever intended for internal use.

      Your requires() condition is not naming a Qt module so will likely never be true.

      B 1 Reply Last reply
      2
      • C ChrisW67

        @bigbigbig qtHaveModule() and qtConfig() are defined in .../mkspecs/features/qt_functions.prf.

        The first looks for the named module in only the QT variable (as documented).

        The second is undocumented AFAICT, but looks for its argument in the list of Qt modules that are available in the QT variable and default private internal lists, considering dependencies and features enabled at Qt build time. This is likely only ever intended for internal use.

        Your requires() condition is not naming a Qt module so will likely never be true.

        B Offline
        B Offline
        bigbigbig
        wrote on last edited by
        #3

        @ChrisW67

        wow,thank you very much.

        "qtHaveModule() and qtConfig() are defined in .../mkspecs/features/qt_functions.prf."

        this helps me so much. emm ,thank you for spending time on me again.

        1 Reply Last reply
        0
        • B bigbigbig has marked this topic as solved on

        • Login

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