[Lazarus] A QT generic directive

zeljko zeljko at holobit.hr
Tue Jul 16 20:46:26 CEST 2024



On 16. 07. 2024. 13:41, Matthieu Giroux via lazarus wrote:
> Yes
> 
> I must use :
> {$IFDEF lclqt6}
> 
> {$ENDIF}
> 
> But when QT7 will be released it should not work that.

Why do you use any Qt at all ? If you call some Qt function maybe that 
function won't exist in next Qt version. Why don't you create your 
define for all Qt's at one place and use it inside your code ?

zeljko


More information about the lazarus mailing list