- Posts: 6803
- Thank you received: 0
how to make my own custom page for qtdragon_hd?
2 years 5 months ago #301911
by cmorley
Replied by cmorley on topic how to make my own custom page for qtdragon_hd?
Can you post your original qtdragon_hd.ui file?
Please Log in to join the conversation.
2 years 4 months ago #302052
by vre
Replied by vre on topic how to make my own custom page for qtdragon_hd?
This is from master repo.
Please Log in to join the conversation.
2 years 4 months ago #302117
by cmorley
Replied by cmorley on topic how to make my own custom page for qtdragon_hd?
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
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.
2 years 4 months ago #302148
by vre
Replied by vre on topic how to make my own custom page for qtdragon_hd?
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)?
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.
2 years 4 months ago #302276
by cmorley
Replied by cmorley on topic how to make my own custom page for qtdragon_hd?
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.
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.
2 years 4 months ago #302334
by vre
Replied by vre on topic how to make my own custom page for qtdragon_hd?
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
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.
2 years 4 months ago #302356
by cmorley
Replied by cmorley on topic how to make my own custom page for qtdragon_hd?
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.
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.
2 years 3 months ago #305442
by vre
Replied by vre on topic how to make my own custom page for qtdragon_hd?
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 ?
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.
2 years 3 months ago #305447
by cmorley
Replied by cmorley on topic how to make my own custom page for qtdragon_hd?
Did you use linuxcnc-HAL radio/check buttons?
Please Log in to join the conversation.
2 years 3 months ago #305536
by vre
Replied by vre on topic how to make my own custom page for qtdragon_hd?
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.122 seconds
