Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2024-07

A QT generic directive

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Matthieu Giroux

Hello !
I deliver freely www.Ancestromania.euI want to deliver it for QT.But there is no generic directive to define qt.So if i forget to change the directive for next qt version, qt version is uncomplete.If there were an ifdef qt directive, i should not have to think to change my code for tge next qt version.Could Lazarus team define a qt directive to not have to upgrade forms code ? Thanks for Lazarus Project !

Matthieu Giroux 13 Rue Fr Tanguy PRIGENT A.15 - 35000 RennesT?l : 09 61 37 01 82 - 06 44 733 008 http://www.liberlog.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240716/169f0bb3/attachment.htm>

Reply by email

Mattias Gaertner
to Matthieu Giroux
Matthieu Giroux wrote
Hello ! I deliver freely www.Ancestromania.euI want to deliver it for QT.But there is no generic directive to define qt.So if i forget to change the directive for next qt version, qt version is uncomplete.If there were an ifdef qt directive, i should not have to think to change my code for tge next qt version.Could Lazarus team define a qt directive to not have to upgrade forms code ? Thanks for Lazarus Project !

Do you mean

{$IFDEF lclqt5}
{$ENDIF}

?

Mattias

Reply by email

Matthieu Giroux
to Mattias Gaertner

Yes
I must use :{$IFDEF lclqt6}

{$ENDIF}
But when QT7 will be released it should not work that.

Matthieu Giroux 13 Rue Fr Tanguy PRIGENT A.15 - 35000 RennesT?l : 09 61 37 01 82 - 06 44 733 008 http://www.liberlog.fr

Le mardi 16 juillet 2024 ? 13:39:28 UTC+2, Mattias Gaertner via lazarus a ?crit :

Matthieu Giroux wrote
Hello ! I deliver freely www.Ancestromania.euI want to deliver it for QT.But there is no generic directive to define qt.So if i forget to change the directive for next qt version, qt version is uncomplete.If there were an ifdef qt directive, i should not have to think to change my code for tge next qt version.Could Lazarus team define a qt directive to not have to upgrade forms code ? Thanks for Lazarus Project !

Do you mean

{$IFDEF lclqt5}
{$ENDIF}

?

Mattias

Reply by email

zeljko
to Matthieu Giroux
Matthieu Giroux wrote 8 lines
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

Reply by email