Results 1 to 3 of 3

Thread: Precompile headers

  1. #1
    Join Date
    Jan 2007
    Posts
    91
    Thanks
    21
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Precompile headers

    Thanks for the help on the last question.

    One more:
    I using Dev Studio 2005 with the Qt snapin.

    I want to do precompiled headers, but everytime the moc_... files are rebuilt they don't include the #include "stdafx.h". I was told that I could change the configuration for these modules to use a precompiled header, but I need some way to have the #include ... added to the file.

    How do I use precompiled headers with Qt and MS VS 2005?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Precompile headers

    Maybe this article helps: Precompiled Headers.
    J-P Nurmi

  3. #3
    Join Date
    Jan 2007
    Posts
    91
    Thanks
    21
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Question Re: Precompile headers

    I finally got back to this. The issue I have is that I've been working within the MSVC environment, ever since importing the .pro file a number of weeks ago.

    I have two questions:
    1. How do I create a .pro file from the .vcproj file?
    2. Do I need to export and reimport the .pro file in order to start using pre-compiled headers? The problem I see is that all of the the moc_<filename>.cpp files all come up and give a c1010 - unexpected end of file while looking for precompiled headers.

    - BRC

Similar Threads

  1. [custom widget] What about private headers ?
    By lauranger in forum Qt Programming
    Replies: 3
    Last Post: 18th November 2006, 23:14
  2. Replies: 4
    Last Post: 27th September 2006, 13:34
  3. Renumbering Row Headers of QHeaderView
    By mclark in forum Newbie
    Replies: 4
    Last Post: 11th September 2006, 15:04
  4. QTableView : headers disappear
    By xavier in forum Qt Programming
    Replies: 2
    Last Post: 8th May 2006, 16:57
  5. QMake / headers / lot of files
    By jcr in forum Qt Programming
    Replies: 7
    Last Post: 10th January 2006, 12:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.