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

List:       pykde
Subject:    Re: [PyKDE] qt.QStyle problems on PyQt-snapshot-20050404
From:       Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date:       2005-04-08 13:10:33
Message-ID: 200504081410.33975.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]

On Thursday 07 April 2005 3:15 pm, Ümit Öztosun wrote:
> 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 using KDE styles, i.e. 'plastik', 'highcolor'
> etc. If style is set to one of the builtin styles such as 'platinum'
> problem does not occur.
>
> Attached script demonstrates the problem; when the script is run as is
> within a KDE desktop, using a KDE-specific theme, we got the following
> error:
>
> TypeError: qt.QStyle represents a C++ abstract class and cannot be
> instantiated Traceback (most recent call last):
>   File "style_test.py", line 10, in drawButton
>     self.style().drawControl(QStyle.CE_PushButton, painter, self,
>
> On the other hand, if line 38 is uncommented out to set a built-in
> style, it works flawlessly. In both cases, using PyQt-3.14.1 and
> SIP-4.2.1 gives no errors.

Should be fixed in the next SIP snapshot.

Thanks,
Phil

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

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

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