Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. What is the reason for getting "no member named qmessagelogger" error

What is the reason for getting "no member named qmessagelogger" error

Scheduled Pinned Locked Moved Solved General and Desktop
qt5threads
3 Posts 2 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    deleted286
    wrote on last edited by
    #1

    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();
    }
    
    1 Reply Last reply
    0
    • Jonas KvingeJ Offline
      Jonas KvingeJ Offline
      Jonas Kvinge
      wrote on last edited by
      #2

      @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.

      D 1 Reply Last reply
      0
      • Jonas KvingeJ Jonas Kvinge

        @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.

        D Offline
        D Offline
        deleted286
        wrote on last edited by
        #3

        @Jonas-Kvinge Oh, yes. I fixed it. Thank you

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved