slot not being called by QFutureWatcher
-
I have a function that runs the following ioStart() task with QtConcurrent::run() and when it is finished, the slot MainWindow::ioFinished() doesn't get called.
{ QFutureWatcher<int> watcher; connect(&watcher, &QFutureWatcher<int>::finished, this, &MainWindow::ioFinished); QFuture<int> future = QtConcurrent::run(this, &MainWindow::ioStart, name); watcher.setFuture(future); }I have it defined in the cpp and in the MainWindow.h ...
public slots: void ioFinished();Anyone have ideas?
-
I have a function that runs the following ioStart() task with QtConcurrent::run() and when it is finished, the slot MainWindow::ioFinished() doesn't get called.
{ QFutureWatcher<int> watcher; connect(&watcher, &QFutureWatcher<int>::finished, this, &MainWindow::ioFinished); QFuture<int> future = QtConcurrent::run(this, &MainWindow::ioStart, name); watcher.setFuture(future); }I have it defined in the cpp and in the MainWindow.h ...
public slots: void ioFinished();Anyone have ideas?