Modifing QTVCP xml for Qtdragon_hd?

More
21 Jan 2023 05:49 #262553 by akg1904
Hi,
I am trying to modify QtDragon_hd xml files for my custom requirement.
But the xml file in qtvcp does not support "multi-label","legends","bar","button" etc.
Is there any other way to have this "multi-label","legends","bar","button" etc. working in Qtvcp xml files.
or is there any alternative of this?
We can check different xml files of other ini files(such as switchkins etc.) to find the uses of above syntax.

Regards
Abhishek

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

More
21 Jan 2023 08:58 #262565 by cmorley
Please explain where you found : "multi-label","legends","bar","button"

Is this from pyvcp?

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

More
21 Jan 2023 11:22 #262568 by akg1904
Hi,
Yes it is from pyvcp.

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

More
21 Jan 2023 22:12 #262614 by cmorley
There is no equivalent to multi label in qtvcp (you could build it yours self though)
You could use a general_hal_input to connect to a QProgess bar for a bar
Not sure what legends are.
and a HAL pushbtton works like a button in pyvcp.

You can't use your old XML files if that is what you are hoping.

I could add some of these in the future.
The following user(s) said Thank You: akg1904

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

More
22 Jan 2023 06:54 #262632 by cmorley
In 2.9 I have modified hal_label to support multi labels.
Unfortunately no docs yet
The following user(s) said Thank You: akg1904

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

More
23 Jan 2023 04:35 #262707 by akg1904
Hi,
Thank you for your prompt reply..
Can you please guide me how I can build multi-label and other syntax in QTVCP.
There are few suggestion I feel can be made in QTVCP...
1. Qprogress bar only moves in one direction, we cannot represent both positive and negative progress in single Qprogress bar.
2. It can be made compitable with previous XML syntax(if possible).

Regards
Abhishek

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

More
23 Jan 2023 05:37 #262718 by cmorley
Use designer to add a HAL_Label
Go to the properties tab look for HAL_Label
check the property 'use_multi_label'
set the textTemplate property to %s
double click the property multi_label_list
edit/add the labels in the dialog.

You can use rich text in the textTemplate or in the label list
Ie using as the textTemplate:
<html><head/><body><p><span style=" font-weight:600;">%s</span></p></body></html>
Will make all the labels bold.

Yes I'm considering the best way to create a bar widget.

Chris
The following user(s) said Thank You: akg1904

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

More
25 Jan 2023 11:08 #262871 by akg1904
Hi Chris,

How can I use "Hal_label" in qtdragon as in QTdesigner I was not able to find Hal_label and more so I was not able to convert Qlabel into Hal_label.

Abhishek 

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

More
25 Jan 2023 13:57 #262884 by cmorley
Are any oh linuxcnc's widgets available in designer?

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

More
27 Jan 2023 04:55 #262979 by akg1904
Hi Chris,

It(general_hal_input,general_hal_output,hal_label) does shows in lib/python/qtvcp/widgets, but it doesn't shows itself in qtdesigner.

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

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