'QT5 cannot initialize object parameter of type 'const QThread' with expression of type 'name1Thread'
I'm getting the error:
cannot initialize object parameter of type 'const QThread' with an expression of type 'name1Thread'
A snippet of code from my header file, called 'name1.h':
#include <QThread>
...
class name1;
class name1Thread : public QThread
{
Q_OBJECT
public:
void stop()
{
if(this->isRunning()) //Error occurs here
{
mRunning = false;
mCondition.notify_one();
}
}
I don't understand why this isn't working; please help.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
