Hi guys,

I am trying to use the Thread functions like in the map example.

I needed the scale function to access the ui, so I changed it in the cpp file to this:

Qt Code:
  1. QString MainWindow::scale(const QString &filename)
  2. {
  3. ...
  4. }
To copy to clipboard, switch view to plain text mode 

This appearently required me to add it to the header file. I did it like this:
Qt Code:
  1. ...
  2. public:
  3. MainWindow(QWidget *parent = 0);
  4. ~MainWindow();
  5. QString scale(const QString &filename);
  6. ...
To copy to clipboard, switch view to plain text mode 

The call remains
Qt Code:
  1. QtConcurrent::blockingMapped(images, scale);
To copy to clipboard, switch view to plain text mode 

The error message I receive is:
mainwindow.cpp:85: error: no matching function for call to `blockingMapped(QList<QString>&, <unknown type>)'
Why doesn't he recognize the function anymore?

Any help is greatly appreciated .

qweide