Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt 6.4.1 on macOS where are the QtWidgets/* header files?

Qt 6.4.1 on macOS where are the QtWidgets/* header files?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 746 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.
  • V Offline
    V Offline
    vgfl
    wrote on 13 Dec 2022, 04:13 last edited by
    #1

    Hello there,

    I just installed Qt 6.4.1 on my Mac, and I am unable to find the right header files.
    I found the folder:
    Qt/6.4.1/macos/lib/QtWidgets.framework/Headers
    It contains the usual Qt headers, but unfortunately the files it contains include "QtWidgets/someheader.h", e.g.:

    Qt/6.4.1/macos/lib/QtWidgets.framework/Headers/qapplication.h:7:10: fatal error: 'QtWidgets/qtwidgetsglobal.h' file not found

    Unlike on Linux, the QtWidgets folder does not exist and is nowhere to be found.

    Thanks!

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      ziller
      wrote on 13 Dec 2022, 13:18 last edited by
      #2

      #include <QtWidgets/qtwidgetsglobal.h>

      is a "framework-style" include. For these includes <FW/file.h> the compiler also tries to find it in "<FrameworkPath>/QtWidgets.framework/Headers/file.h" were <FrameworkPath> is iterated through all paths given to the compiler with "-F <path>".

      So, given the right path with "-F /Users/<user>/Qt/6.4.1/macos/lib", the compiler should resolve "#include <QtWidgets/qtwidgetsglobal.h>" to the file "/Users/<user>/Qt/6.4.1/macos/lib/QtWidgets.framework/Headers/qtwidgetsglobal.h".

      1 Reply Last reply
      2
      • V Offline
        V Offline
        vgfl
        wrote on 13 Dec 2022, 13:41 last edited by
        #3

        Ooooh thank you thank you!

        1 Reply Last reply
        0

        3/3

        13 Dec 2022, 13:41

        • Login

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