|
|
Dimitri wrote:
Hi,
I tried to use customEvent to post event from a non-UI thread.
It is strange that the object that receive the CustomEvent should be
a subclass of QWidget instead of QObject.
Mmmh... I can't find such a requirement. Where did you find it?
If I define a class inheriting QObject, it will never receive the
event posted by QThread::postEvent();
If change the parent class to QWidget, it can receive the event
posted by QThread::postEvent().
Is it normal ?
No, but chances are there's some error when sending the event or when
checking whether the event was received or not. Can you show us some
code?
Sorry for former posting. The problem turns out to be I used a corrupted
QT library.
--
Dimitri
--
List archive and information: http://lists.trolltech.com/qt-interest/
--
"The aim of science is not to open the door to infinite wisdom,
but to set a limit to infinite error."
-- Bertolt Brecht, Life of Galileo
--
List archive and information: http://lists.trolltech.com/qt-interest/
|
|