You need to respect the QFutureWatcher api, signal has no parameters, so it can be connected only to slots that takes no parameter.
If you want to get QFuture inside the slot, you can use QFutureWatcher::future() method. And in order to get QFutureWatcher, use qobject_cast on sender() :
Qt Code:
  1. void ViewerMain::copyComplete()
  2. {
  3. qDebug("Copy complete fired!");
  4. QFutureWatcher<GDALDataset *> * watcher = qobject_cast< QFutureWatcher<GDALDataset *>* >(sender());
  5. if( watcher ){
  6. QFuture<GDALDataset *> future = watcher->future();
  7. }
  8. }
To copy to clipboard, switch view to plain text mode