Recent

Author Topic: Onclick with LCL Qt  (Read 6648 times)

aime2nice

  • New Member
  • *
  • Posts: 11
Onclick with LCL Qt
« on: August 27, 2009, 07:28:36 pm »
Hello,

(Google translation, sorry...)
Post déjà soumis, mais je ne sais pas s c'était au bon endroit...

But, I have a big problem with the event OnClick.
Simple example:
A Tform, a Tbutton and a Tlabel.
Project with Option "LCL Widget type" positioned on QT (it is essential for me ...)
Onclick event of button: Label1.Caption: = 'button clicked ';
OnClick event of the form: Label1.Caption: = 'Form clicked';

If I click on the button: OK. No surprise! Label = 'Button clicked'
If I click directly on the form, the label equals 'Form clicked'.. Good!
But from this point, I cannot click on the button. Regardless of where I click (button or label or on the form) it is the OnClick event of the form that is called.
 Does Someone  have any idea?

Config:
Lazarus 0.9.29 FPC 2.2.4 Mac OSX 10.5.8 PowerPC G4

Thank you in advance.

Bonjour,

Par contre, j'ai un gros problème avec l'évennement OnClick. Exemple simple:
Une forme, un bouton, un label. Projet avec option "Type de composant graphique LCL" positionné à QT (c'est indispensable pour moi...)
Evennement onclick du bouton : label1.caption := 'bouton cliqué';
Evennement OnClick de la forme : label1.caption := 'Forme cliquée';

Si je clique sur le bouton, OK. Pas de surprise!
Si je clique directement sur la forme, je ne peux plus cliquer sur le bouton. Quel que soit l'endroit où je clique (sur le bouton ou sur le label ou sur la forme), c'est l'évennement Onclick de la forme qui est appelé.

Quelqu'un a-t-il une idée?

Config:
Lazarus 0.9.29 FPC 2.2.4 Mac OSX 10.5.8 PowerPc G4

Merci d'avance.

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: Onclick with LCL Qt
« Reply #1 on: August 28, 2009, 12:26:53 am »
it's a bit offtop, but why don't you use Carbon instead of Qt for OSX?

aime2nice

  • New Member
  • *
  • Posts: 11
Re: Onclick with LCL Qt
« Reply #2 on: August 28, 2009, 01:03:14 am »
HI,
I need QT to display HTML pages generated by my application.

I make crosscompile on my Mac OSX i386 (10.5.8, idem), and the errors are the same.

What hapend?
« Last Edit: August 28, 2009, 01:05:11 am by aime2nice »

 

TinyPortal © 2005-2018