diff --git a/lcl/interfaces/qt/qtobjects.pas b/lcl/interfaces/qt/qtobjects.pas index 5e06cf1bce..356905c2d2 100644 --- a/lcl/interfaces/qt/qtobjects.pas +++ b/lcl/interfaces/qt/qtobjects.pas @@ -615,7 +615,7 @@ begin begin AEvent := QLCLMessageEvent_create(LCLQt_Destroy); QLCLMessageEvent_setWParam(AEvent, PtrUInt(Self)); - QCoreApplication_postEvent(QCoreApplication_instance(), AEvent, Ord(QtLowEventPriority)); + QCoreApplication_postEvent(QCoreApplication_instance(), AEvent {$IFDEF QT_USE_4_3}, Ord(QtLowEventPriority) {$ENDIF}); //WriteLn('Posted release event'); end else