[Lazarus] Order of OnCreate and OnActivate in Qt4
zeljko
zeljko at holobit.net
Sun Nov 25 18:40:15 CET 2018
On 11/25/2018 04:43 PM, Vojtěch Čihák via lazarus wrote:
> Today I used tool qtconfig and changed style (Appearance) from Plastique
> to QtCurve. Now my code crashes, order of events is:
>
> FrmMain.Create
>
> FrmMain.Activate
>
> CRASH, because code in OnActivate assumes that FrmContext already exists.
>
> So, Qt4+Plastique has different order of events than Qt4+QtCurve.
>
> Unfortunately, I cannot reproduce with simple demo.
>
> What I'm doing wrong? Do I rely on something that is not guaranteed?
Afaik not, that should work w/o problems. Never seen such kind of
problem with different themes. In any case, without example project I
cannot help.
zeljko
More information about the Lazarus
mailing list