[Qt] FPC Qt4 Binding V1.39
Den Jean
Den.Jean at telenet.be
Wed Jul 4 21:09:53 CEST 2007
On Wednesday 04 July 2007 08:24:35 pm zeljko at holobit.net wrote:
> sorry Den but this patch doesn't fix the problem,I've just tried it.
> QWidget::closeEvent() is accepted by default, whatever you do in form
> OnCloseQuery() event,
> --->>>>> but just when you close form via titlebar "X" button <---- ,
> not when you close it via LCL call, like buttonPress()->Close().
> That's the point, Qt manages this click not LCL since LCL have nothing
> with minimize,maximize,close (titlebar) etc. buttons.
> So when you click it , it's already accepted, all additional changes
> on this event are lost (eg. ignore).
> Beleive me, I've spent few days in testing all solutions around this
> problem, and only closeEvent() overriding fixes things.
Strange, I tested both "X" button and Form.Close. Both work as expected:
when CanClose false -> app does not close.
Please try again.
I will send LCL/Qt binary as proof in private.
Test:
* Leave CanClose ChexBox unchecked: click X or Button2 (with Close
statement) -> app does not close
* Check CanClose CheckBox: click X or Button2 -> app closes
regards,
Den Jean
More information about the Qt
mailing list