[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] examples/application.py segfaults
From:       Phil Thompson <phil () river-bank ! demon ! co ! uk>
Date:       1999-10-03 10:16:13
[Download RAW message or body]

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
["sipQPixmap.cpp.patch" (text/plain)]

--- 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);
 		}


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic