Results 1 to 3 of 3

Thread: #ifdef QT?

  1. #1
    Join Date
    Apr 2009
    Location
    www.JaminGrey.com
    Posts
    71
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Windows

    Default #ifdef QT?

    Hey, I'm coding two seperate programs atm - a game, and the game's map editor.
    The game I'm coding in SFML, but the editor I'm coding in QT. I wish to keep the common portions of both, unbiased to the API.

    So: What is the #define that lets me know if QT is being used?

    I can do #ifdef SFML... but what's QT's define?

    Thanks.

  2. #2
    Join Date
    Jul 2010
    Posts
    21
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: #ifdef QT?

    Hi,

    See QtGlobal for global declarations. There is QT_VERSION, for example, which can be used to filter out unsupported features.

  3. #3
    Join Date
    Apr 2009
    Location
    www.JaminGrey.com
    Posts
    71
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: #ifdef QT?

    Thanks, QT_VERSION will work for me.

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.