I want to emit a signal from a C++ thread (std::thread) in Qt.
How can I do it?
If you're keeping pointer to your QObject then you could use one of QMetaObject::invokeMethod
member http://qt-project.org/doc/qt-5/qmetaobject.html#invokeMethod
Probably you will have to use Qt::QueuedConnection
so your signal will be invoked at proper thread (not your std::thread). Remember that your signal won't be invoked immedietly.