QT4에서 쓰레드에서 이벤트 날리고 싶은데요..잘 모르겠어요.

falhed의 이미지

제가 QT3에서는 Event 날려서 해봤는데요, QT4는 잘 모르겠어요.ㅠㅠ

qt4.3.3 예제를 다 찾아봤는데요, postEvent, sendEvent 예제가 없네요. 헐..................

postEvent, sendEvent QT4에서 예제 있으신분 올려주시면 안 될까요?ㅠㅠ

답변 부탁드리겠습니다.

klara의 이미지

Qt4에서는 QCoreApplication::sendEvent()와 QCoreApplication::postEvent()를 이용하면 됩니다.
assistant에서 각각을 찾아보시면 간단한 사용법과 주의점이 적혀있습니다.