On/Off-Switch with QPushButton

Luca Beltrame lbeltrame at kde.org
Sun Nov 1 11:05:21 UTC 2015


In data domenica 1 novembre 2015 11:57:54 CET, Rainer Dorsch ha scritto:

Hello Rainer,

> http://doc.qt.io/qt-5/qabstractbutton.html#iconSize-prop

The reason for the exception lies in the Qt version you are referencing: Qt 5. 
Plasma 4.11.x and the Python bindings you are using are based on Qt 4, so this 
property is likely non existent there.

> What would work better?

IIRC (it's been such a long time since I wrote something with the Python 
bindings), Plasma.Button. This will follow the font, color, and other bits set 
in the Plasma theme.

-- 
Luca Beltrame - KDE Forums team
KDE Science supporter
GPG key ID: A29D259B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20151101/32d3d5d2/attachment.sig>


More information about the Plasma-devel mailing list