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. Qt5 QtConcurrent
Qt 6.11 is out! See what's new in the release blog

Qt5 QtConcurrent

Scheduled Pinned Locked Moved General and Desktop
6 Posts 5 Posters 13.0k Views 1 Watching
  • 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.
  • K Offline
    K Offline
    Kikohs
    wrote on last edited by
    #1

    Hello,

    I'm trying to migrate my project from Qt4 to Qt5. QtConcurrent is no longer shipped in Qt5. Where can I download it, it is compatible ?

    Thanks

    1 Reply Last reply
    0
    • M Offline
      M Offline
      MuldeR
      wrote on last edited by
      #2

      What makes you think it isn't included?

      It's in the Qt 5.0 documentation:
      http://qt-project.org/doc/qt-5.0/qtconcurrent/qtconcurrent.html

      And in the source tree:
      http://qt.gitorious.org/qt/qtbase/trees/stable/src/concurrent

      (Note: It is in the "qtbase" sub-module of Qt 5, because Qt has been modularized)

      My OpenSource software at: http://muldersoft.com/

      Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

      Go visit the coop: http://youtu.be/Jay...

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Kikohs
        wrote on last edited by
        #3

        You're right. I was not looking in the right folder.
        Thanks

        1 Reply Last reply
        0
        • I Offline
          I Offline
          imtoby
          wrote on last edited by
          #4

          in Qt5, try the follow way:

          #include <QtConcurrent/QtConcurrentMap>
          #include <QtConcurrent/QtConcurrentRun>

          but if we edit our pro file like this:

          LIBS += -lQt5Concurrent

          may be the best way.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            bruceoutdoors
            wrote on last edited by
            #5

            [quote author="imtoby" date="1363097703"]

            but if we edit our pro file like this:

            LIBS += -lQt5Concurrent

            may be the best way.[/quote]

            Hi. I have the same problem too. Keep saying undefined reference to bla bla bla...

            After adding
            @
            LIBS += -lQt5Concurrent
            @

            to my project file and
            @
            #include <QtConcurrent/QtConcurrent>
            @

            to my source file the code build and run as expected. Thanks!

            1 Reply Last reply
            0
            • P Offline
              P Offline
              pa23
              wrote on last edited by
              #6

              Also you should add to project file
              @QT += concurrent@

              "See here":http://qt-project.org/doc/qt-5.0/qtconcurrent/map-map-pro.html

              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