how to make my own custom page for qtdragon_hd?

More
31 May 2024 01:32 #301911 by cmorley
Can you post your original qtdragon_hd.ui file?

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

More
01 Jun 2024 12:04 #302052 by vre
This is from master repo.
Attachments:

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

More
02 Jun 2024 03:14 #302117 by cmorley
Ok lets try again. Seems I picked the wrong file then erased it...

same thing as before - rename to qtdragon_hd.uiĀ  etc

The pin names will be
qtdragon.btn-usr-1 etc
qtdragon.led-usr-1 etc

Oh and don't pull in new changes from the repo or the ui file will need to be modified again.

Chris
Attachments:
The following user(s) said Thank You: tommylight, vre

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

More
02 Jun 2024 12:36 - 02 Jun 2024 12:39 #302148 by vre
I will use qtdragon_hd.ui from master but i will copy to that your code
snippet that makes the buttons/leds so it will be compatible.
Qtdesigner is wysiwyg editor for this ui files(for example like netbeans swing gui editor for java)?
Last edit: 02 Jun 2024 12:39 by vre.

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

More
03 Jun 2024 21:22 #302276 by cmorley
Designer is, in principal a wysiwyg editor, but python code can modify it after.
for instance the macro buttons are always shown in the editor but are hidden by default when the screen starts.

Let me know if the changes worked for you.
The following user(s) said Thank You: vre

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

More
04 Jun 2024 18:41 #302334 by vre
Yes works that is i want exactly.
Can you give me also code for selection button between 2 options like radio button
or 2 position slider or on-off style button with latch

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

More
05 Jun 2024 02:30 #302356 by cmorley
In designer:
set buttons checkable.
hold control key and click on each button you want in exclusive group
Right click one of the selected buttons and select 'assign to button group'
The right click option also allows you to 'morph' them into check or radio buttons.
The following user(s) said Thank You: tommylight, vre

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

More
17 Jul 2024 01:56 #305442 by vre
I have added radiobuttons and checkboxes from qtdesigner
the radiobuttons and checkboxes shown in gui but no hal pins.
How can create the hal pins for radiobuttons ?

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

More
17 Jul 2024 03:17 #305447 by cmorley
Did you use linuxcnc-HAL radio/check buttons?

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

More
17 Jul 2024 20:06 - 17 Jul 2024 21:15 #305536 by vre
Ok i have given these commands and linuxcnc-hal widgets appeared in qtdesigner
# mkdir /usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python
# ln -s /usr/lib/python3/dist-packages/qtvcp/plugins/qtvcp_plugin.py /usr/lib/x86_64-linux-gnu/qt5/plugins/designer/python/qtvcp_plugin.py
Last edit: 17 Jul 2024 21:15 by vre.

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

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