[Qt] Storing custom data in QWidget

Jesús Reyes A. jesusrmx at yahoo.com.mx
Thu Dec 28 18:55:24 CET 2006


----- Original Message ----- 
From: "Den Jean" <Den.Jean at telenet.be>
To: "Items specific to the Qt widget set" <qt at lazarus.freepascal.org>
Sent: Thursday, December 28, 2006 4:04 AM
Subject: Re: [Qt] Storing custom data in QWidget


> On Thursday 28 December 2006 00:55, Jesus Reyes wrote:
>> Another thing, keymodifiers cannot be retrieved using QMouseEventH,
>> QMouseEvent_modifiers
> QMouseEvent inherits from QInputEvent.
> Use following function using the handle of your QMouseEvent.
> function QInputEvent_modifiers(handle: QInputEventH): QtKeyboardModifiers;
>
>
>> or QMouseEvent_to_QInputEvent() function is
> Such a function is not necessary, usage see above.
>
> Sometimes there are ClassA_To_ClassB functions.
> See wiki why:
> http://www.freepascal.org/wiki/index.php/Qt4_binding#C.2B.2B_Multiple_inheritance
>
>> missing, this is needed to get shift state into LCL mouse msg.
>
>
> regards,
>
> Den Jean

:) In fact I based my comment on that article, I thought QMouseEvent 
inherites from QEvent and QInputEvent because in QT docs it says:
"1 public function inherited from QInputEvent
6 public functions inherited from QEvent"
As I didn't look at the source to find from what class it inherits first, I 
though that QEvent was more logical from the name, I see I was wrong :)

And, what about the other part.  Storing custom data in QWidget, any idea?

Jesus Reyes A. 

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.com.mx/ 




More information about the Qt mailing list