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. Add QtGui private headers
Forum Updated to NodeBB v4.3 + New Features

Add QtGui private headers

Scheduled Pinned Locked Moved Solved General and Desktop
qmakeprojectprivate api
7 Posts 4 Posters 9.5k 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.
  • K Offline
    K Offline
    kshegunov
    Moderators
    wrote on 21 Dec 2015, 19:49 last edited by kshegunov
    #1

    Hello,
    Is there a way to tell qmake to add the private headers' locations to my include path besides writing them down manually?

    NOTE:
    I'm well aware that this is not a public API and can change even in minor versions, and that this would break binary compatibility, I just wish to test some code against some private classes.

    Kind regards.

    Read and abide by the Qt Code of Conduct

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 21 Dec 2015, 22:00 last edited by
      #2

      Hi,

      It should be enough to add QT += gui-private to your .pro file

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

      K 1 Reply Last reply 21 Dec 2015, 22:14
      4
      • S SGaist
        21 Dec 2015, 22:00

        Hi,

        It should be enough to add QT += gui-private to your .pro file

        K Offline
        K Offline
        kshegunov
        Moderators
        wrote on 21 Dec 2015, 22:14 last edited by
        #3

        @SGaist
        It worked like a charm. Many thanks!

        Read and abide by the Qt Code of Conduct

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 21 Dec 2015, 22:16 last edited by
          #4

          You're welcome ! :)

          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
          • M Offline
            M Offline
            mescalinum
            wrote on 27 Jan 2019, 18:40 last edited by
            #5

            how to do the same when using make build system?

            I tried the following:

            find_package(Qt5 COMPONENTS Core Quick QuickPrivate REQUIRED)
            

            but QuickPrivate module is not found

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 27 Jan 2019, 21:13 last edited by
              #6

              Hi,

              See this thread.
              It was inspired by the technique used by the KDAB folks for GammaRay.

              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
              • V Offline
                V Offline
                VRonin
                wrote on 28 Jan 2019, 09:05 last edited by
                #7

                Hopefully, once this ticket is closed, everything should be easier using CMake

                "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                ~Napoleon Bonaparte

                On a crusade to banish setIndexWidget() from the holy land of Qt

                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