Recent

Author Topic: TStringGrid on Qt  (Read 5370 times)

Phil

  • Hero Member
  • *****
  • Posts: 2737
TStringGrid on Qt
« on: December 20, 2006, 07:24:45 pm »
This is probably for Jesus:

Do you have any idea of what it would take to support TStringGrid with the Qt widgetset?

Thanks.

jesusr

  • Sr. Member
  • ****
  • Posts: 499
RE: TStringGrid on Qt
« Reply #1 on: December 23, 2006, 12:17:15 am »
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

  • Hero Member
  • *****
  • Posts: 2737
Re: RE: TStringGrid on Qt
« Reply #2 on: December 23, 2006, 03:16:39 am »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
RE: Re: RE: TStringGrid on Qt
« Reply #3 on: December 23, 2006, 01:00:25 pm »
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.

 

TinyPortal © 2005-2018