[Qt] Compiling with 2.3.1

Den Jean Den.Jean at telenet.be
Thu Jan 10 18:00:57 CET 2008


On Wednesday 09 January 2008 08:03:01 pm Den Jean wrote:
> PostEvent does not have a priority in Qt 4.2.3. With the enum fixed you can
> use the readable enum now :-)  (QtLowEventPriority)
> QCoreApplication_postEvent(QCoreApplication_instance(), AEvent{, -1});

To be more clear

Index: lcl/interfaces/qt/qtobjects.pas
===================================================================
--- lcl/interfaces/qt/qtobjects.pas	(revision 13716)
+++ lcl/interfaces/qt/qtobjects.pas	(working copy)
@@ -615,7 +615,11 @@
   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




More information about the Qt mailing list