- Posts: 5712
- Thank you received: 0
Action Button Indicator Colours
Please Log in to join the conversation.
The buttons them self can be.
making custom stylesheet aware widgets seems to be a future project of Qt IIRC
Chris
Please Log in to join the conversation.
That's a shame... and a lazy me not wanting to change them all in Designer.cmorley wrote: If you are speaking of the LED indicators on the button - no
Please Log in to join the conversation.
It's even easy and didn't require code changes.
Add this to the stylesheet (this covers all indicated buttons)
Please Log in to join the conversation.
cmorley wrote: I'm happy to find out I'm wrong - but it took a while to find it on the net.
It's even easy and didn't require code changes.
Add this to the stylesheet (this covers all indicated buttons)
Code:Indicated_PushButton{ qproperty-on_color: #000; qproperty-off_color: #444; }
Many thanks Chris, it works a treat.
I have spent most of the day on working around it but now it is easy. I searched for "pyqt indicated_pushbutton" but came up empty except for a couple of references to QtVCP.
On another note I am a bit confused with the STATUS library. For instance I see in a handler file:
Please Log in to join the conversation.
STAT is a custom library for qtvcp based on gladevcp's GStat.
linuxcnc.org/docs/2.8/html/gui/GStat.html#cha:GStat
Please Log in to join the conversation.
OK, that makes sense now.cmorley wrote: indicated_pushbutton are a custom widget built in qtvcp by subclassing a QPushButton - so qtvcp's docs is the only place you will find them.
So it uses the same messages and functions?STAT is a custom library for qtvcp based on gladevcp's GStat.
linuxcnc.org/docs/2.8/html/gui/GStat.html#cha:GStat
Please Log in to join the conversation.
Please Log in to join the conversation.
Great, thanks again. I now have enough to keep me going for a while until the next question.cmorley wrote: yes same messages, in fact lots of the messages do something in qtvcp and not in Gladevcp at the moment. These are the descriptions that say 'depends on widget/library'
Please Log in to join the conversation.
Hopefully we can work on the docs - so when you are finished maybe you can tell me what would be helpful, such as more detail here and small example there etc.
Chris
Please Log in to join the conversation.
