[Qt] Request for QEvent subclass
Den Jean
Den.Jean at telenet.be
Sun Sep 23 21:48:43 CEST 2007
On Saturday 22 September 2007 19:30:40 Павел Ишенин wrote:
> Hello, Items specific to the Qt widget set
http://doc.trolltech.com/4.3/qobject.html#setProperty
could have been used too, but I will look into your stuff.
>
> Den, can you add special event class. I know last time my requests are
> not simple, but we are doing not simple things :)
>
> I forgot c++ so I am writing on pascal:
>
> QLCLMessageEvent = class(QEvent)
> private
> FMsg: Cardinal;
> FWParam: Cardinal;
> FLParam: Cardinal;
> FResult: Cardinal;
> public
> constructor Create(Msg, WParam, LParam: Cardinal);
> function getResult: Cardinal;
> procedure setResult(const AResult: Cardinal);
> ...
> property Result: Cardinal read getResult write setResult;
> property Msg: Cardinal read getMsg write setMsg;
> property WParam read getWParam write setWParam;
> property LParam read getLParam write setLParam;
> end;
>
> after that I will use it so:
>
> MessageEvent := QLCLMessageEvent_create(QEventUser, Msg, WParam,
> LParam);
> try
> QCoreApplication_postEvent(Widget, MessageEvent);
> finally
> QEvent_destroy(MessageEvent);
> end;
>
> and I want to catch it in EventFilter of Widget.
>
> I need this stuff in order to simulate windows PostMessage.
>
> Best regards,
> Paul Ishenin.
> _______________________________________________
> Qt mailing list
> Qt at lazarus.freepascal.org
> http://www.lazarus.freepascal.org/mailman/listinfo/qt
More information about the Qt
mailing list