Results 1 to 4 of 4

Thread: : Project DEFINES not reflected in editor

  1. #1

    Default : Project DEFINES not reflected in editor

    Is there some secret setting to get the editor in Qt Creator to see the pre-processor symbols in the project DEFINES section? All the sections of code that I have marked with #if defined(xxx) are grayed out even though I have the symbol defined in the project file.

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: : Project DEFINES not reflected in editor

    I don't think Qt Creator parser your .PROject file, only your source code, so will not see the defines you have set there.

  3. #3

    Default Re: : Project DEFINES not reflected in editor

    Ah, that is unfortunate.

  4. #4
    Join Date
    May 2008
    Posts
    155
    Thanked 15 Times in 13 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: : Project DEFINES not reflected in editor

    The feature to read #defines from the .pro file was added after the 1.3.1 release.

Similar Threads

  1. QMake DEFINES
    By AlHadr in forum Qt Tools
    Replies: 7
    Last Post: 25th January 2013, 11:55
  2. QMAKE custom DEFINES & CONFIG
    By sheeeng in forum Qt Programming
    Replies: 16
    Last Post: 12th January 2012, 17:04
  3. Date defines in Sqlite?
    By Raccoon29 in forum General Programming
    Replies: 1
    Last Post: 24th November 2009, 00:14
  4. Passing global defines to moc
    By NTwoO in forum Qt Programming
    Replies: 6
    Last Post: 2nd April 2007, 12:23
  5. Qt4 Preprocessor defines
    By Chicken Blood Machine in forum Qt Programming
    Replies: 12
    Last Post: 23rd March 2006, 17:28

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.