Results 1 to 4 of 4

Thread: Qt usage macro

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    165
    Thanked 2 Times in 2 Posts

    Default Re: Qt usage macro

    Quote Originally Posted by ChrisW67 View Post
    QT_VERSION, or pretty much anything from QtGlobal. However, this sort of environment detection is often done outside the program being built by a configure script that sets flags of your choosing if Qt is present and the user has not disabled it.
    Hmm, I thought about this possibility... It would be, in this case, something like "#if QT_VERSION > 0x000000"?

    Now about what you explained regarding using configuration scripts, I'm not sure I understood the proceeding, but still I see no reason about how could I do that given my context (the header file I'm creating).
    Last edited by Momergil; 15th July 2013 at 04:26.

Similar Threads

  1. Including Q_OBJECT in another macro
    By Thuan Seah Tan in forum Qt Programming
    Replies: 1
    Last Post: 14th March 2012, 05:21
  2. Q_OBJECT macro problem
    By bijan311 in forum Newbie
    Replies: 46
    Last Post: 26th March 2010, 22:21
  3. Q_OBJECT macro - what exactly does it do?
    By magland in forum Qt Programming
    Replies: 3
    Last Post: 26th September 2007, 10:30
  4. Macro
    By comlink21 in forum Qt Programming
    Replies: 1
    Last Post: 25th July 2007, 11:28
  5. Macro used for debugging
    By sunil.thaha in forum General Programming
    Replies: 11
    Last Post: 30th March 2007, 17:32

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.