- Posts: 1107
- Thank you received: 3
Indicators on Push Buttons
1 year 7 months ago #324192
by JT
Indicators on Push Buttons was created by JT
Chris,
How are you adding the indicator lights to the upper right corner of the push buttons in QtDragon?
Thanks
JT
How are you adding the indicator lights to the upper right corner of the push buttons in QtDragon?
Attachment not found
Thanks
JT
Please Log in to join the conversation.
1 year 7 months ago #324194
by cmorley
Replied by cmorley on topic Indicators on Push Buttons
I have a mixin class that reimplements the paint event. It first paints the normal widget then adds indicator painting.
github.com/LinuxCNC/linuxcnc/blob/master...ts/indicatorMixIn.py
github.com/LinuxCNC/linuxcnc/blob/master...ts/indicatorMixIn.py
Please Log in to join the conversation.
1 year 7 months ago #324282
by JT
Replied by JT on topic Indicators on Push Buttons
Thanks Chris, that's going to take a bit of study for me to break it down. Pretty cool stuff.
JT
JT
Please Log in to join the conversation.
1 year 7 months ago #324289
by cmorley
Replied by cmorley on topic Indicators on Push Buttons
Yes action buttons are some of the most complicated code.
It does make buttons a little less boring
It does make buttons a little less boring
Please Log in to join the conversation.
1 year 7 months ago #324294
by JT
Replied by JT on topic Indicators on Push Buttons
I think it's pretty damn cool myself.
JT
JT
Please Log in to join the conversation.
1 year 5 months ago #329123
by CADdy
Replied by CADdy on topic Indicators on Push Buttons
Hi Chris,
how to install this widget? Only copy the file indicatorMixIn.py to /usr/lib/python3/dist-packages/qtvcp/widgets ? Can it then be used with Qt Designer?
Peter
how to install this widget? Only copy the file indicatorMixIn.py to /usr/lib/python3/dist-packages/qtvcp/widgets ? Can it then be used with Qt Designer?
Peter
Please Log in to join the conversation.
1 year 5 months ago #329140
by cmorley
Replied by cmorley on topic Indicators on Push Buttons
IndicatorMixin is not meant to be used directly. It is 'mixed in' with another button widget such as Qtvcp's PushButton widget or IndicatedPushButton widget
Please Log in to join the conversation.
Time to create page: 0.324 seconds
