Hi, I'm trying to get StringGrid working in QT interface, so I'm doing some experiments to know what it's missing, and I fixed/implemented a number of features and it seems to work, yet there are many things that need to be implemented.
Currently I'm dealing with focus, I'm using
QApplication_FocusWidget() to get the focused QWidgetH, the problem is I need the Corresponding TQtWidget which is the handle that GetFocus should return.
I would like to store custom data in QWidget instance, is there any way to do it? This is How it should work (ideally).
constructor TQtWidget.Create(WinControl,Params)
begin
...
Widget:=QWidget_Create(); // a std QWidget
// QWidget_SetData(QWidgetH,String,Pointer)
QWidget_SetData(Widget, 'Handle', Self);
...
end;This way, QWidgetH would be associated to WinControl, at the moment, TQTWidget is associated to WinControl through LCLObject.
This could be also useful to implemet SetProp and GetProp Widgetset functions though currently I have implemented these in TQtWidget.
Another thing, keymodifiers cannot be retrieved using QMouseEventH, QMouseEvent_modifiers or QMouseEvent_to_QInputEvent() function is missing, this is needed to get shift state into LCL mouse msg.
Jesus Reyes A.
__________________________________________________ Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ?gratis! Reg?strate ya - http://correo.yahoo.com.mx/
