how to make my own custom page for qtdragon_hd?

More
2 years 5 months ago #301911 by cmorley
Can you post your original qtdragon_hd.ui file?

Please Log in to join the conversation.

More
2 years 4 months ago #302052 by vre
This is from master repo.

Please Log in to join the conversation.

More
2 years 4 months ago #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

Please Log in to join the conversation.

More
2 years 4 months ago #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)?

Please Log in to join the conversation.

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

Please Log in to join the conversation.

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

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

Please Log in to join the conversation.

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

More
2 years 3 months ago #305447 by cmorley
Did you use linuxcnc-HAL radio/check buttons?

Please Log in to join the conversation.

More
2 years 3 months ago #305536 by vre
Ok i have given these commands and linuxcnc-hal widgets appeared in qtdesigner
Code:
# 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

Please Log in to join the conversation.

Time to create page: 0.400 seconds
Powered by Kunena Forum