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. QtConcurrent::map() doesn't emit progressValueChanged() signal with QMap.

QtConcurrent::map() doesn't emit progressValueChanged() signal with QMap.

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 609 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.
  • T Offline
    T Offline
    toteme
    wrote on last edited by toteme
    #1

    Hello,

    With the code below, the finished() signal is emitted but progressValueChanged() isn't emitted.
    Is there a way to know when each item has been done?

    QMap<QString, int> items;
    // ... Fill items
    
    QFutureWatcher<void> watcher;
    watcher.setFuture(QtConcurrent::map(items, function));
    
    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi! I wonder what your map function (function in your code above) looks like because to me it seems that using QtConcurrent::map on a QMap isn't supported.

      1 Reply Last reply
      1

      • Login

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