signals:
void logFromMainThread(QtMsgType, QString);
public slots:
void logFromMainThreadSlot(QtMsgType, QString);auto res = QtConcurrent::run([=](){ // auto - QFuture
emit logFromMainThread(QtDebugMsg, "^gfgjhfgjfhg");
QMetaObject::invokeMethod(this, "logFromMainThreadSlot",
Q_ARG(QtMsgType, QtDebugMsg),
Q_ARG(QString, "Asdfasdf"));