Re: On/Off-Switch with QPushButton

2015-11-01 Thread Rainer Dorsch
On Sunday 01 November 2015 12:35:54 Luca Beltrame wrote: > In data domenica 1 novembre 2015 12:31:07 CET, Rainer Dorsch ha scritto: > > I spent quite some time with the path for the iconsthat was to root > > cause why I started hacking the plasmoid. Any hint there would be helpful. > > I'm not

Re: On/Off-Switch with QPushButton

2015-11-01 Thread Luca Beltrame
In data domenica 1 novembre 2015 12:31:07 CET, Rainer Dorsch ha scritto: > I spent quite some time with the path for the iconsthat was to root > cause why I started hacking the plasmoid. Any hint there would be helpful. I'm not sure unfortunately, it's been so long that my memory is quite haz

Re: On/Off-Switch with QPushButton

2015-11-01 Thread Rainer Dorsch
On Sunday 01 November 2015 12:22:10 Luca Beltrame wrote: > In data domenica 1 novembre 2015 12:08:28 CET, Rainer Dorsch ha scritto: > > I thought providing the full source for reference might be useful: > > http://netcup.bokomoko.de/~rd/steckdose-plasma.tgz > > A few remarks: > > - I don't think

Re: On/Off-Switch with QPushButton

2015-11-01 Thread Luca Beltrame
In data domenica 1 novembre 2015 12:08:28 CET, Rainer Dorsch ha scritto: > I thought providing the full source for reference might be useful: > http://netcup.bokomoko.de/~rd/steckdose-plasma.tgz A few remarks: - I don't think you need to provide the full path to icons, IIRC there's a way to get

Re: On/Off-Switch with QPushButton

2015-11-01 Thread Rainer Dorsch
Hi Luca, On Sunday 01 November 2015 12:05:21 Luca Beltrame wrote: > 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 referenci

Re: On/Off-Switch with QPushButton

2015-11-01 Thread Rainer Dorsch
On Sunday 01 November 2015 11:57:54 Rainer Dorsch wrote: > Oh, yes. The setIconSize() triggers the exception. That is the main reason, > why I cannot use it. I thought providing the full source for reference might be useful: http://netcup.bokomoko.de/~rd/steckdose-plasma.tgz Rainer -- Rainer

Re: On/Off-Switch with QPushButton

2015-11-01 Thread Luca Beltrame
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,

Re: On/Off-Switch with QPushButton

2015-11-01 Thread Rainer Dorsch
Hi Luca, On Sunday 01 November 2015 11:38:43 Luca Beltrame wrote: > In data domenica 1 novembre 2015 11:15:21 CET, Rainer Dorsch ha scritto: > > Hello, > > for the record, you're talking about Python plasmoids for Plasma 4.11.x, > correct? yes, that is correct. > > > AttributeError: 'PushButt

Re: On/Off-Switch with QPushButton

2015-11-01 Thread Luca Beltrame
In data domenica 1 novembre 2015 11:15:21 CET, Rainer Dorsch ha scritto: Hello, for the record, you're talking about Python plasmoids for Plasma 4.11.x, correct? > AttributeError: 'PushButton' object has no attribute 'setIconSize' > Interesting enough the size issue is then gone... Is setIconS

On/Off-Switch with QPushButton

2015-11-01 Thread Rainer Dorsch
Hello, I wrote a plasmoid a number of QPushButtons with an (svg) QIcon each. Every button controls a switch which has an "on" and an "off" state. The button is used to control and show the state of the switch. Works nicely, my current implementation has two icons which it sets to signal the st