¡@

Home 

c++ Programming Glossary: myslot

How to emit cross-thread signal in Qt?

http://stackoverflow.com/questions/638251/how-to-emit-cross-thread-signal-in-qt

std cout thread 2 started std endl exec public slots void MySlot void std cout slot called std endl main.cpp int main int argc.. QObject connect oThread1 SIGNAL MySignal oThread2 SLOT MySlot oThread1.start oThread2.start oThread1.wait oThread2.wait return.. return a.exec Output is thread 2 started thread 1 started MySlot is never called . What I'm doing wrong c qt signals signals..