gladevcp equivelent widgets?

More
10 Mar 2023 05:30 #266261 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.

More
10 Mar 2023 06:01 #266269 by cmorley
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.

Please Log in or Create an account to join the conversation.

More
10 Mar 2023 06:42 #266271 by blazini36
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.

Please Log in or Create an account to join the conversation.

More
10 Mar 2023 06:46 #266272 by blazini36
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.

More
10 Mar 2023 21:21 #266337 by cmorley
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.

Please Log in or Create an account to join the conversation.

More
15 Jul 2023 20:00 - 15 Jul 2023 20:01 #275540 by cmorley
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.
Last edit: 15 Jul 2023 20:01 by cmorley.

Please Log in or Create an account to join the conversation.

More
15 Jul 2023 20:05 #275542 by cmorley
 

Chris
Attachments:
The following user(s) said Thank You: phillc54, blazini36

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.093 seconds
Powered by Kunena Forum