Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Unsolved
    1. Home
    2. Tags
    3. parallel
    Log in to post

    • UNSOLVED Display loading gif while lengthy function is running in parallel.
      General and Desktop • loading parallel qmovie • • BigBen  

      2
      0
      Votes
      2
      Posts
      28
      Views

      hi @BigBen thats only possible, as long as your long running function does not modify Ui-elements but yes, QtConcurrent is one of the possible options to use let me link you to my git repo https://github.com/DeiVadder/QtThreadExample that covers all (Qt) ways of parallelisation, and should give you a good starting point
    • UNSOLVED QtCreator 4.0.0 no more mingw parallel compilation
      Tools • qtcreator creator compilation parallel 4.0.0 • • Keyos  

      13
      0
      Votes
      13
      Posts
      4532
      Views

      @koahnig said: Either you need to add "-j4" as make parameter to each of your projects. Otherwise you can set also "MAKEFLAGS=-j4" to your environment (e.g. for a kit as suggested above). Correction to above post. I have set it to system environment. I did not get it to work in kit environment. Both were set due to my trials, but the latter alone (in kit environment) does not help.
    • SOLVED Run multiple QEventLoops in parallel (for QtNetwork)
      General and Desktop • qtnetwork qeventloop parallel • • QtExchange  

      6
      0
      Votes
      6
      Posts
      1995
      Views

      I never tried to start a thread with event loop in a program without main event loop (QApplication). My guess: it will work inside your thread, but you will not be able to communicate with the thread from main thread using signals/slots.
    • How to FINALLY do asynchronous background worker with QThread
      General and Desktop • qthread thread threads asynchronous parallel • • Viktor Jamrich  

      12
      1
      Votes
      12
      Posts
      5862
      Views

      @JKSH Oh, did not catch that difference. Thank you.
    • [Solved] QFileSystemWatcher parallel to console application
      General and Desktop • signal & slot application console files qfilesystemwatc parallel • • Varius  

      4
      0
      Votes
      4
      Posts
      2226
      Views

      @Varius said: thread = new QThread(this); console->moveToThread(thread); IIRC, these lines are doing more than you think they do. thread's parent is your object, then you move your MyObject instance to thread, so all objects who are child of your MyObject instance are moved the thread. So thread will be moved to itself. All in all, you should rather have thread in your main as a stack object