How to create qDebug signal from another thread to the Qt5 GUI thread
问题 I am trying to display log messages from a work thread in a GUI. I am trying to follow redirect qDebug to QTextEdit It started to work fine, but I am stuck, how to program QObject::connect(otherThread, SIGNAL(debug(QString)), s_textEdit, SLOT(append(QString)), Qt::QueuedConnection); The principle I see, that one signal in the thread shall be connected to a slot in the GUI thread; but how to trigger that signal? Also, I make some logging with QDebug , but also some output to std::cerr . Can I