gladevcp equivelent widgets?

More
3 years 7 months ago #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 to join the conversation.

More
3 years 7 months ago #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 to join the conversation.

More
3 years 7 months ago #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 to join the conversation.

More
3 years 7 months ago #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 to join the conversation.

More
3 years 7 months ago #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 to join the conversation.

More
3 years 3 months ago #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.

Please Log in to join the conversation.

More
3 years 3 months ago #275542 by cmorley
 

Attachment not found



Chris

Please Log in to join the conversation.

Time to create page: 0.104 seconds
Powered by Kunena Forum