Re: [PyKDE] weird PyQt bug: memory corruption?

2005-04-21 Thread Ümit Öztosun
> Can anybody reproduce this? Phil, do you have any idea about what might be > causing this? > > What happens in my full application is an AttributeError while trying to > call QScrollView.viewport().setBackgroundMode, because the name does not > exit (the object is a QObject instead of a QWidget)

[PyKDE] QObject.queryList() memory leak problem

2005-04-14 Thread Ümit Öztosun
Hello, When using QObject.queryList() with an inheritsClass parameter [i.e. self.queryList('QWidget')], the objects returned by the query gains an extra reference AFAIU. However, without parameters, it works as expected. The attached script demonstrates the problem, it repeatedly creates and then

[PyKDE] qt.QStyle problems on PyQt-snapshot-20050404 (forgot attachment)

2005-04-07 Thread Ümit Öztosun
Sorry, Forgot to attach the test script. Here it is. Best Regards, Umit Oztosun # -*- coding: utf-8 -*- import sys from qt import * class MyButton(QPushButton): def drawButton(self, painter): # This line: self.style().drawControl(QStyle.CE_PushButton, painter, self,

[PyKDE] qt.QStyle problems on PyQt-snapshot-20050404

2005-04-07 Thread Ümit Öztosun
Hello, We are using a custom QPushButton derived widget in our application. I tried PyQt-x11-gpl-snapshot-20050404.tar.gz together with sip-snapshot-20050403.tar.gz, and I am getting "TypeError: qt.QStyle represents a C++ abstract class and cannot be instantiated" errors. The problem occurs when