TStringGrid on Qt lazarus / 7-LCL ---------------------------------------------------------------------- Phil · 2006-12-20 18:24 This is probably for Jesus: Do you have any idea of what it would take to support TStringGrid with the Qt widgetset? Thanks. ---------------------------------------------------------------------- jesusr · 2006-12-22 23:17 I'm compiling qt4 for my system but after hours it still is compiling, so atm I don't know for sure. I talked to sekel asking about TCustomControl status under QT, he toldme that should be working (there still are some things unimplemented), Have you tried?, what is not working?. ---------------------------------------------------------------------- Phil · 2006-12-23 02:16 Quote from: "jesusr"I'm compiling qt4 for my system but after hours it still is compiling, so atm I don't know for sure. I talked to sekel asking about TCustomControl status under QT, he toldme that should be working (there still are some things unimplemented), Have you tried?, what is not working?. Yes, compiling the Qt Open Source Edition on my old Mac is an overnight affair. On OS X with Qt 4.1.4, my app that uses TStringGrid just shows a few lines, nothing else. 20061122 snapshot (2.0.4). On Windows with Qt 4.2.1, my app doesn't show anything where the TStringGrid is supposed to be. 20061221 snapshot (2.0.4). In both cases, however, the app doesn't crash. With the controls I'm porting from Delphi, none of the controls that are descendants of TCustomControl work on Qt, only the ones that are descended from, e.g, TGraphicControl or TCustomEdit work on Qt. Thanks. -Phil ---------------------------------------------------------------------- felipemdc · 2006-12-23 12:00 That's not a problem with TCustomControl itself. It does work, I checked. The problem is probably missing Canvas functions. You need to make a list of all canvas functions TStringGrid needs and see where they are implemented. They are usually implemented on LCLIntf as WinAPI functions, like Rectangle, LineTo, MoveTo, ExtTextOut, etc, etc, etc. There are also some non-winapi drawing functions on LCLIntf such as Draw 3D rectangle.