gladevcp equivelent widgets?
10 Mar 2023 05:30 #266261
by blazini36
gladevcp equivelent widgets? was created by blazini36
I just redesigned a gtk2 ui to Qt, just the designer files so far I have to get help with the Python code. It was mostly straight forward except I noticed qtvcp seems to be missing some of the basic widgets equivelant to gladevcp, namely it's missing the hal-hbar hal-vbar and toggle buttons. Maybe I'm missing them or it's done differently in Qt?
Please Log in or Create an account to join the conversation.
10 Mar 2023 06:01 #266269
by cmorley
Replied by cmorley on topic gladevcp equivelent widgets?
In Qt , QPushbuttons with the 'checkable' property set will act as toggle buttons.
Currently, there is no 'HAL v/hbar widget. I've been meaning to get to it.
The is a qtvcp round progress bar.
There is also the QProgress bar, it can be made vertical too.
It has some limits. can't have multi colors, only supports integers.
QtAxis uses one for the spindle speed indicator.
Currently, there is no 'HAL v/hbar widget. I've been meaning to get to it.
The is a qtvcp round progress bar.
There is also the QProgress bar, it can be made vertical too.
It has some limits. can't have multi colors, only supports integers.
QtAxis uses one for the spindle speed indicator.
Please Log in or Create an account to join the conversation.
10 Mar 2023 06:42 #266271
by blazini36
Replied by blazini36 on topic gladevcp equivelent widgets?
Ah thanks, I don't think the "checkable" thing is very obvious.
Also, how do the radiobuttons handle grouping? In glade you assigned a group to the radiobuttons as slaves of the one named in the group. I don't see anything like that in designer.
Also, how do the radiobuttons handle grouping? In glade you assigned a group to the radiobuttons as slaves of the one named in the group. I don't see anything like that in designer.
Please Log in or Create an account to join the conversation.
10 Mar 2023 06:46 #266272
by blazini36
Replied by blazini36 on topic gladevcp equivelent widgets?
Actually now that I preview the form I notice that it groups all the radiobuttons within a container. Is that how it works?
Please Log in or Create an account to join the conversation.
10 Mar 2023 21:21 #266337
by cmorley
Replied by cmorley on topic gladevcp equivelent widgets?
From memory...
By default radio buttons that are all in a container are considered a group,but you can right click the radio button and create/ add a group.
By default radio buttons that are all in a container are considered a group,but you can right click the radio button and create/ add a group.
Please Log in or Create an account to join the conversation.
15 Jul 2023 20:00 - 15 Jul 2023 20:01 #275540
by cmorley
Replied by cmorley on topic gladevcp equivelent widgets?
Very late but I just added a basic bar level widget to qtvcp. vertical , horizontal, invertible and multi colors, can use HAL inputs, qt signals or python code to set level.
Some docs have been added for HalBar in 2.9/master.
Some docs have been added for HalBar in 2.9/master.
Last edit: 15 Jul 2023 20:01 by cmorley.
Please Log in or Create an account to join the conversation.
15 Jul 2023 20:05 #275542
by cmorley
Replied by cmorley on topic gladevcp equivelent widgets?
Attachments:
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.145 seconds