Thanks guys for your replies.
I've found the problem. The problem was in Object's event() method...
But now I have another problem.
In my test app I have custom event that I post with
All seems ok, events posted and received but with another type that I
static const int changeColorEventType = QEvent::registerEventType();
: public QEvent
: QEvent( static_cast< QEvent::Type >( changeColorEventType ) )
Is this code right?
In my Object's event() I receive events with type 65533 when
changeColorEventType is 65535...
From: Thiago Macieira
Sent: Sunday, June 08, 2014 7:28 PM
Subject: Re: [Interest] How to start object in the thread?
I’ve added Launcher that works on the main thread. His job is just emit
start() signal. My Object on the different thread connects to this start()
Now Launcher emits start() signal. All is ok. But Object doesn’t receive
a) the signal was really emitted
b) the receiver was not deleted
c) the connection was successful (your earlier code had SLOT(start()), not a
d) the event loop is running on the target thread
e) there are no warnings printed to stderr or standard debug
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center