Felipe Monteiro de Carvalho wrote:
> On 5/5/06, Tony Maro <[EMAIL PROTECTED]> wrote:
>> I played with the QT interface but it constantly crashed with anything
>> more intense than a label and a button.
>
> Can you send me a project you were trying to work with on Qt interface?
>
> I can try to make the necessary adjustments on the interface so it no
> longer crashes.
Here's a test project for both QT and GTK2.  It includes a Tbutton, a
Tpanel, a TMemo and a TLabel.

NOTE: I may have left it set to build for QT last... check widget set
before compiling.

http://www.maro.net/lazarus/testinterfaces.tgz

Both QT and GTK2 have the z-order / transparency problem.

I've set a label with an 8 point Helvetica font.  If you don't have
Helvetica, you might want to change it to something else.  In GTK2 the
font shows HUGE - like 150 point or something, and regardless of what
font you tell it to be ends up being the same font.  The point size DOES
affect it, but you can't get it lower than an effective 100 point or
so.  It will go much larger.

In GTK2, a default formatted label displays fine - it's just anytime you
try to set the font.  The problem of font size also occurs if you are
manually drawing on a TCanvas using onpaint.

In QT the label doesn't appear at all, even if you just go with the
default font.

In QT it seems to run, but when you X to close the app, a huge empty
window appears on top of everything and the console shows crash information:

Freeing resources
Freeing resources
[FORMS.PP] ExceptionOccurred
  Sender=EAccessViolation
  Exception=Access violation
  Stack trace:
  $00000000
  $08079719
  $080E9F3E  TCUSTOMMEMO__DESTROYHANDLE,  line 126 of
./include/custommemo.inc
  $080C6D37  TWINCONTROL__DESTROYHANDLE,  line 3286 of
./include/wincontrol.inc
  $080C8E35  TWINCONTROL__DESTROY,  line 4438 of ./include/wincontrol.inc
  $08063165  TSCROLLINGWINCONTROL__DESTROY,  line 165 of
./include/scrollingwincontrol.inc
  $08063954  TCUSTOMFORM__DESTROY,  line 122 of ./include/customform.inc
  $08052BC5
  $0806A78E  TAPPLICATION__DOBEFOREFINALIZATION,  line 816 of
./include/application.inc
  $08060B69  BEFOREFINALIZATION,  line 1327 of forms.pp
  $08056E74
TApplication.HandleException Access violation
  Stack trace:
  $00000000
  $08079719
  $080E9F3E  TCUSTOMMEMO__DESTROYHANDLE,  line 126 of
./include/custommemo.inc
  $080C6D37  TWINCONTROL__DESTROYHANDLE,  line 3286 of
./include/wincontrol.inc
  $080C8E35  TWINCONTROL__DESTROY,  line 4438 of ./include/wincontrol.inc
  $08063165  TSCROLLINGWINCONTROL__DESTROY,  line 165 of
./include/scrollingwincontrol.inc
  $08063954  TCUSTOMFORM__DESTROY,  line 122 of ./include/customform.inc
  $08052BC5
  $0806A78E  TAPPLICATION__DOBEFOREFINALIZATION,  line 816 of
./include/application.inc
  $08060B69  BEFOREFINALIZATION,  line 1327 of forms.pp
  $08056E74


Thanks!
Tony

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to