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:
{
...
}
QString MainWindow::scale(const QString &filename)
{
...
}
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:
...
public:
~MainWindow();
...
...
public:
MainWindow(QWidget *parent = 0);
~MainWindow();
QString scale(const QString &filename);
...
To copy to clipboard, switch view to plain text mode
The call remains
QtConcurrent::blockingMapped(images, scale);
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
Bookmarks