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

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Mar 29 15:52:33 CEST 2022

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)}


More information about the lazarus mailing list