Results 1 to 2 of 2

Thread: How to know the Qt Version of a given Qt component?

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

    Default How to know the Qt Version of a given Qt component?

    Hello!

    Talking about QT_VERSION macro here: [http://www.qtcentre.org/threads/5539...02#post247602], I ended up having a question regarding knowledge of Qt versions and their relation with specific Qt components, namely, how exactly does I know which is the minimal Qt Version that a given Qt thing requires to be used? Some functions in Qt Assistant do say "this feature was introduced in Qt ...", but this is not regular. For example, how do I know which is the minimal Qt Version that it's required for QMessageBox to be used?

    And I got a related question: is there a way by which I can detect if a given header was #include or not? I mean, we can detect if a macro was already defined my using #ifndef:

    Qt Code:
    1. #ifndef MACRO
    2. #define MACRO
    3. #endif
    To copy to clipboard, switch view to plain text mode 

    Is there a way to do a analogous thing regarding header #include?


    Thanks,

    Momergil

  2. #2
    Join Date
    Jul 2008
    Location
    Germany
    Posts
    509
    Thanks
    11
    Thanked 76 Times in 74 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to know the Qt Version of a given Qt component?

    Hi, I think it is safe to assume that all functions that are not marked as "introduced in Qt 4.x" are available for all Qt 4 versions.

    Most headers use include guards that work the same way as you macro example.

    Ginsengelf
    Last edited by Ginsengelf; 15th July 2013 at 07:21. Reason: spelling corrections

Similar Threads

  1. Creating an evaluation version or trial version
    By munna in forum General Discussion
    Replies: 9
    Last Post: 20th June 2015, 01:50
  2. Replies: 0
    Last Post: 18th April 2013, 10:09
  3. Replies: 5
    Last Post: 26th August 2011, 19:08
  4. Replies: 0
    Last Post: 11th August 2009, 09:38
  5. Replies: 5
    Last Post: 5th October 2008, 05:12

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.