QtDragon_hd Qt Creator files

More
12 Feb 2024 05:17 #293128 by govind@89
Could you kindly provide a link to download the Qt Creator files specifically tailored for QtDragon_hd? I'm eager to obtain them for my project.
Attachments:

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

More
12 Feb 2024 06:58 #293133 by cmorley

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

More
12 Feb 2024 07:40 #293135 by govind@89
Thank you very much! I have another question: How can I set an option to open all files with a specific software?
Attachments:

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

More
12 Feb 2024 07:56 #293138 by cmorley
I'm not sure what you mean.
Typically one would built the basic screen on designer, then run with linuxcnc to test and then edit the style file to get the look one wants.

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

More
12 Feb 2024 09:10 - 12 Feb 2024 10:19 #293144 by govind@89
Can the GUI be customized? If yes, which software should be used for editing and which file needs to be edited?

If I press home all button I just want to know which command is sent by Linuxcnc Gui and from which file.
github.com/LinuxCNC/linuxcnc/tree/2.9/sh.../screens/qtdragon_hd   

which source file dependency for that GUI Commonds?
 
Attachments:
Last edit: 12 Feb 2024 10:19 by govind@89.

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

More
12 Feb 2024 13:59 #293149 by cmorley
Yes it can be customized in many ways.
Qt's Designer is the editor for the screen layout.
I use a text editor for the python code.
Here is documentation of the basic process:
linuxcnc.org/docs/stable/html/gui/qtvcp...._sheet_custom_screen

Home-all button calls the function btn_home_all_clicked() in the qtdragon_hd_handler.py file.
What is it you want to change?

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

More
12 Feb 2024 17:20 #293155 by govind@89
Thank you so much! I am thrilled to know that we can customize the GUI. I need to understand how GUI frontend to backend functions work and which functions are called to execute on those events and in which files.

Please guide me a few functions so that I can understand it better and make appropriate changes.

The ex.Home-all button calls the btn_home_all_clicked() function in the qtdragon_hd_handler.py file.

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

More
13 Feb 2024 07:01 #293201 by cmorley
Well there are several ways to use widgets to change linuxcnc state.
There are special widgets such as 'action_buttons' that are highly adjustable using properties.

If those don't suit you can do what the btn_home_all pushbutton did - call a function in the handler file.
A function like this:
    def btn_home_all_clicked(self, obj):
        if self.home_all is False:
            ACTION.SET_MACHINE_HOMING(-1)
        else:
        # instantiate dialog box
            info = "Unhome All Axes?"
            mess = {'NAME':'MESSAGE', 'ID':'_unhome_', 'MESSAGE':'UNHOME ALL', 'MORE':info, 'TYPE':'OKCANCEL'}
            ACTION.CALL_DIALOG(mess)

ACTION is a library of commands to control linuxcnc. ie. ACTION.SET_MACHINE_HOMING(-1) tell linuxcnc to home all the joints.

If you ask specific questions I can give specific answers.
Chris

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

More
13 Feb 2024 08:22 #293204 by govind@89
Thank you very much for responding. Could you kindly inform me about which file supports the labels or buttons in the GUI at the GUI level, and which file executes that gui buttons commond the corresponding event at the Firmware level.
the location of these files?

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

More
14 Feb 2024 08:16 #293301 by cmorley
This is the base folder for widget and libraries used in Qtvcp:
github.com/LinuxCNC/linuxcnc/tree/2.9/lib/python/qtvcp

Here is action buttons:
github.com/LinuxCNC/linuxcnc/blob/2.9/li...ets/action_button.py

This is the file that sends commands to linuxcnc (using the python linuxcnc module):
github.com/LinuxCNC/linuxcnc/blob/2.9/li...n/qtvcp/qt_action.py

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

Time to create page: 0.269 seconds
Powered by Kunena Forum