Sign in Join

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

Mailing lists / qt / 2017-07

LCLQt vs LCLQt5

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Heiko Tietze

With Qt5 we got a new switch. However, some if not all source files still use LCLQt. For example in OpenGLContext

{$IFDEF LCLQT}
  {$DEFINE UseQTGLX}
  ...

and in GLQTContext

  // Bindings
  {$ifdef LCLQT} qt4, {$endif}

The first can be solved with {$IF Defined(LCLQT) or Defined(LCLQT5)} the second works per {$ifdef LCLQT} qt4, {$else} qt5, {$endif}¹. But I wonder if we better keep LCLQt for all Qt variants and introduce a 'legacy' LCLQt4 switch additional to the new LCLQt5.

Great work anyway, enabling Qt5 was a piece of cake compared to the handling of Qt in the past. Heiko

¹ Despite the fact that OpenGL neither works with Qt4 nor Qt5.

Juha Manninen
to Heiko Tietze

21.7.2017 10.57 "Heiko Tietze via Qt" kirjoitti:

But I wonder if we better keep LCLQt for all Qt variants and introduce a 'legacy' LCLQt4 switch additional to the new LCLQt5.

+1
It would make things easier. QT 4 and 5 are so similar that a common define could be used in most places.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/qt/attachments/20170724/426045f3/attachment.html>