error: QThread no member named create
-
@rtvideo
I take it your are trying to call this overload: https://doc.qt.io/qt-5/qthread.html#create-1
I agree it looks an odd message to me, I don't know whether compiler can throw that up if your<function>
argument is not good.
Does some otherQThread
method throw up same error, or is it because ofcreate()
only?
Personally, I would empty out the debug/release directory of all files and recompile from scratch, just in case....
Otherwise, probably state your Qt version, platform etc. for others to look at?
Did you compile Qt yourself? I know there are some options to reduce what gets compiled, I don't know if there is some "no thread support" option. -
@JonB Yes that is the one, it is strange because create() seems to be the only member in QThread that does not allow me to use it. Any other functions will work fine in the class. I am Using Qt Creator 4.13.1, Based on Qt 5.15.1 on Linux Ubuntu, I am using qmake to compile.
-
@rtvideo said in error: QThread no member named create:
I am Using Qt Creator 4.13.1, Based on Qt 5.15.1 on Linux Ubuntu
That tells us your version of Qt Creator, and the version of Qt that was used to build Qt Creator.
What is the version of Qt that you're using to build your app?
QThread::create()
was introduced in Qt 5.10. It's not available if you're using Qt 5.9 or earlier.