Hello, i wonder if you can help me with one issue i still cannot solve ...
Im working on lldb debugger app.
It is about QThread, of course
* im trying to run asynchronous thread while loop, which is waiting for some events and if some occures then do things like enable buttons, write something to console etc. , and continue to loop
till now i did as follows:

* inherited QObject to move to (moveToThread())
class Runner : public QObject {
Q_OBJECT
public:
explicit Runner(std::shared_ptr<DebuggerSession> dBsession = nullptr, QObject *parent = nullptr);
~Runner() = default;

public slots:
void runDebugSession();

private:
std::shared_ptr<DebuggerSession> debugger;

QMutex mutex;
};

void Runner::runDebugSession() {
mutex.lock();
debugger->setProcessInterruptFeatures();
mutex.unlock();
}



* real session -> function which is called by Runner function:

class DebuggerSession {
public:
DebuggerSession(lldbBridge *lldb_bridge);
~DebuggerSession() = default;

void setProcessInterruptFeatures();

private:
lldbBridge *DBridge;
bool HandleProcessEvent(SBEvent &event);
bool HandleProcessStateChangeEvent(SBEvent &event);
void HandleProcessStopped(SBEvent &event, SBProcess &process);
};




* and this setup

worker = new QThread;
auto ptr = std::make_shared<DebuggerSession>(this);
runner = new Runner(ptr); // QObject::moveToThread: Cannot move objects with a parent
connect(worker, &QThread::started, runner, &Runner::runDebugSession, Qt::QueuedConnection); // Qt::QueuedConnection
connect(worker, &QThread::finished, worker, &QObject::deleteLater, Qt::QueuedConnection);// worker ---> this
worker->setObjectName("DebuggerThread");
runner->moveToThread(worker);
worker->start();


* if i run this then at least 30 errors appears, with saying like not registered type, cannot create thread from ... object, cannot start timer, etc.
* please, have you got any idea what shall i do,... really want to move on
* thanks for your response