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
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Solved General and Desktop
qt5threads
3 Posts 2 Posters 938 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 10 Jan 2021, 20:42 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
    • J Offline
      J Offline
      Jonas Kvinge
      wrote on 10 Jan 2021, 20:53 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 10 Jan 2021, 20:58
      0
      • J Jonas Kvinge
        10 Jan 2021, 20:53

        @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 10 Jan 2021, 20:58 last edited by
        #3

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

        1 Reply Last reply
        1

        1/3

        10 Jan 2021, 20:42

        • Login

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