Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Include header depending on Qt version [Solved]

    General and Desktop
    2
    3
    649
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      janfaroe last edited by

      I finally came to my senses and am stepping down from 5.x to 4.8.5, because there's too much unfinished business for the Mac in 5.x at this time. I seem to recall the existance of a way to include headers depending on the Qt version, but I can't recall how, and I can't seem to hit the right keywords on Google or here. Any ideas?

      ie. something like [pseudo code]:

      IF_GTE(QT_VERSION, 5) #include <QtConcurrent/QtConcurrentRun>

      1 Reply Last reply Reply Quote 0
      • JKSH
        JKSH Moderators last edited by

        http://qt-project.org/doc/qt-5/qtglobal.html#QT_VERSION

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply Reply Quote 0
        • J
          janfaroe last edited by

          Bam. Thanks a bunch!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post