diff --git a/lcl/interfaces/qt5/qt56.pas b/lcl/interfaces/qt5/qt56.pas index 099cd51e56..a31b4f42b3 100644 --- a/lcl/interfaces/qt5/qt56.pas +++ b/lcl/interfaces/qt5/qt56.pas @@ -69,8 +69,14 @@ type r,g,b : word; Pad : word; end; - - QtHandle = integer; + + {$IFDEF DARWIN} + {void*} + QtHandle = PtrUInt; + {$ELSE} + {unsigned long on x11, dword on windows} + QtHandle = LongWord; + {$ENDIF} PQReal = ^QReal; {$ifdef CPUARM} QReal = single;