[PyKDE] examples/application.py segfaults

Phil Thompson phil at river-bank.demon.co.uk
Sun Oct 3 11:16:13 BST 1999


Marco Bubke wrote:
> 
> Mmhh. I have the problem down triggered to QPixmap. It's definitly a problem to
> use a XPM as a string. If I use it as file it runs perfectly. Then I noticed a
> Problem with QmessageBox. There is no message methode. Maybe a bug. I haven't
> the Problem with the original application in C++.
> 
> Marco

Try the attached patch.

Don't worry about the QMessageBox.message() being missing. It is marked
in the Qt sources as being obsolete so I never implemented it. It should
me replaced by a call to QMessageBox.information().

Phil
-------------- next part --------------
--- sipQPixmap.cpp.orig	Sun Oct  3 11:10:41 1999
+++ sipQPixmap.cpp	Sun Oct  3 11:11:23 1999
@@ -1097,9 +1097,7 @@
 			if ((str = PyQtListToArray(strlist)) == NULL)
 				return NULL;
 
-			// There is no wrapper class for QPixmap.
-
-			sipNew = new QPixmap(str);
+			sipNew = new sipQPixmap(str);
 
 			Py_Free(str);
 		}


More information about the PyQt mailing list