> 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)
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
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,
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