[Lazarus] How to create a non focusable form?

Zeljko zeljko at holobit.net
Wed Oct 28 13:59:22 CET 2015



On 10/28/2015 01:06 PM, Gabor Boros wrote:
> 2015.10.28. 11:51 keltezéssel, Zeljko írta:
>> Ok, then go to QtWSForms, TQtWSCustomForms.UpdateWindowFlags and comment
>> if csNoStdEvents ..... leave only
>> Flags := Flags or QtX11BypassWindowManagerHint;
>>
>> in this case form will not take focus in any case, but must see what
>> happens with parenting (button is not visible because of this param I
>> guess).
>
> Commented out "if csNoStdEvents..." line. Button not visible on form
> with out without csNoStdEvents in ControlStyle.

seem that we are not lucky with Qt4.
I've readed a bit Qt5 docs and it seem that it's fixed there with new 
attributes like:Qt::WA_X11DoNotAcceptFocus and windowFlags like
Qt::WindowDoesNotAcceptFocus.

zeljko




More information about the Lazarus mailing list