What is the reason for getting "no member named qmessagelogger" error
Solved
General and Desktop
-
In my main.cpp, I got this arror. There is no mThread.start();
Because of it i used startTimer. What can be the reason?#include <QCoreApplication> #include "mythread.h" #include <QFile> #include <QDebug> #include <QThread> #include <mainwindow.h> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); MyThread mThread; mThread.startTimer(); qDebug() << "im running on gui thread " << a.thread()->currentThreadId(); return a.exec(); }
-
@suslucoder said in What is the reason for getting "no member named qmessagelogger" error:
MyThread
MyThread probably isn't a QThead, you need to look at mythread.h too see the definition.
-
@Jonas-Kvinge Oh, yes. I fixed it. Thank you