title: Is it possible to create many QProgressDialogs objects, that will show progress different long operations?
body: <p>I have class, that launches tasks in separate thread:</p>
  
  <pre><code>class SomeTask : public QObject, QRunnable
  {
      Q_OBJECT
  signals:
      void updateProgressBar(int, int);
  public:
      SomeTask(int, QWidget*);
      void run();
      void runLongOperation(QString)
      {
          QThreadPool::globalInstance()-&gt;start(this);
      }
  };
  </code></pre>
  
  <p>And in MainWindow I create for every long calculation new QProgressBar</p>
  
  <pre><code>class MainWindow : public QMainWindow
  {
      Q_OBJECT
  public:
      explicit MainWindow(QWidget *parent = 0);
  private:
      QList&lt;QProgressDialog*&gt; m_listProgressDialogs;
  public slots:
      void handle(QString) 
      {
            m_listProgressDialogs.push_back(new QProgressDialog("Task in progress...", "Cancel", 0, 100));
     m_listProgressDialogs.at(m_listProgressDialogs.size()-1)-&gt;show();
  
     SomeTask *task = new SomeTask(m_listProgressDialogs.size()-1, this);
     QObject::connect(mv, SIGNAL(updateProgressBar(int)), this, SLOT(setValueProgressBar(int)));
     task-&gt;runLongOperation(......);
      }
      void setValueProgressBar(int);
  };
  </code></pre>
  
  <p>Is it possible to create new QProgressBar for every long task and every task will emit the signal to set value in specific QProgressBar. Is it good to store QProgressBar* in QList, like I wrote ?</p>