Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Include header depending on Qt version [Solved]

Include header depending on Qt version [Solved]

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 794 Views
  • 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 Offline
    J Offline
    janfaroe
    wrote on last edited by
    #1

    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
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      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
      0
      • J Offline
        J Offline
        janfaroe
        wrote on last edited by
        #3

        Bam. Thanks a bunch!

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved