[Lazarus] How to check in code if LCLWidgetType is qt5?

John Landmesser jmlandmesser at gmx.de
Tue Mar 29 17:14:56 CEST 2022


Am 29.03.22 um 15:52 schrieb Mattias Gaertner via lazarus:
> On Tue, 29 Mar 2022 15:44:24 +0200
> John Landmesser via lazarus <lazarus at lists.lazarus-ide.org> wrote:
>
>> My app checks in code if trayIcon.Hint is working.
>>
>> Therefor I have to distinguish in my code if the application has
>>
>> LCLWidgetType=qt5 or LCLWidgetType=gtk2
>>
>> The solution for gtk2 is:
>>
>>> getEnvironmentVariable('LAZUSEAPPIND')
>> I couldn't google a check for LCLWidgetType=qt5, how to do that?
> Do you mean
> {$IF defined(lclqt5) or defined(lclgtk2)}
> ?
>
> Mattias

My first answer got lost?

I'll take

{$IF defined(lclgtk2)}

Thanks, that worked!



More information about the lazarus mailing list