qt-interest@trolltech.com
[Top] [All Lists]

Re: Pass execution of a fuction to a different QThread

Subject: Re: Pass execution of a fuction to a different QThread
From: Andreas Pakulat
Date: Fri, 10 Mar 2006 17:24:40 +0100
On 10.03.06 14:33:09, Francis BACQUE wrote:
> Andreas Pakulat wrote:
> >How did you call postEvent, what does the code look like?
> >  
> StartEvent *event = new StartEvent; //  StartEvent is derived from QEvent
> QCoreApplication::postEvent(target, event);
> 
> where target is:
> QWidget *target;

Strange, the attached example works here. I assume you're using Qt4 as
your subclassing QEvent.

Andreas

-- 
Your temporary financial embarrassment will be relieved in a surprising manner.

Attachment: main.cpp
Description: Text Data

Attachment: mc.cpp
Description: Text Data

Attachment: mc.h
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>