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. Precompile Header
Qt 6.11 is out! See what's new in the release blog

Precompile Header

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 1.0k 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.
  • O Offline
    O Offline
    OlegK
    wrote on last edited by
    #1

    I am going to use precompile header with qmake.
    My question is: Do we need to include pch.h file into all our *.cpp files as we usually do...

    #include "pch.h"      <================= do we need to do this with qmake?
    
    int main(int argc, char **argv)
    {
        QApplication app(argc, argv);
        return app.exec();
    }
    
    

    Nothing is said about this in the documentation: Using Precompiled Headers
    Thanks a lot.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      I think its only needed to do
      PRECOMPILED_HEADER = stable.h

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

        Hi,

        From a quick look at the example project linked in the documentation, you don't.

        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
        1
        • mrjjM mrjj

          Hi
          I think its only needed to do
          PRECOMPILED_HEADER = stable.h

          O Offline
          O Offline
          OlegK
          wrote on last edited by
          #4
          This post is deleted!
          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