Custom widget management
- erikfriesen
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 1
14 Apr 2026 12:28 #345538
by erikfriesen
Custom widget management was created by erikfriesen
Is there a way to create custom widgets without directly editing /usr/lib/python3/dist-packages/qtvcp/ items?
I'd prefer to store these custom widgets in user directory to track modifications easier. Otherwise I have to edit as root.
I've tried and failed to pinpoint where the include directory is defined.
I'd prefer to store these custom widgets in user directory to track modifications easier. Otherwise I have to edit as root.
I've tried and failed to pinpoint where the include directory is defined.
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
-
Less
More
- Posts: 7309
- Thank you received: 2139
16 Apr 2026 02:45 #345583
by cmorley
Replied by cmorley on topic Custom widget management
Except for versa probe and basic probe, the short answer is no general way to customize widgets.
Versa probe and basic probe look for customized ui and handler files.
This describes the process for them:
linuxcnc.org/docs/devel/html/gui/qtdrago..._probe_screen_widget
You can always add your own widget to qtdesigner.
the plugin link should be in a hidden file in your home folder:
.designer/plugins/python/Link to qtvcp_plugin.py
you could add more links, but it's a fair amount of work.
What widgets do you wish to customize?
Versa probe and basic probe look for customized ui and handler files.
This describes the process for them:
linuxcnc.org/docs/devel/html/gui/qtdrago..._probe_screen_widget
You can always add your own widget to qtdesigner.
the plugin link should be in a hidden file in your home folder:
.designer/plugins/python/Link to qtvcp_plugin.py
you could add more links, but it's a fair amount of work.
What widgets do you wish to customize?
Please Log in or Create an account to join the conversation.
- erikfriesen
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 1
16 Apr 2026 13:01 - 16 Apr 2026 13:03 #345592
by erikfriesen
Replied by erikfriesen on topic Custom widget management
What I've done is added to qtvcp_plugin.pyand in ~/.designer/plugins/python/user_plugins.pyand in qt_handler.py at topIt works ok, just one root mode needed that way
import user_plugins from user_plugins import *import sys sys.path.insert(0, "/home/path....")
from mod_plugin import somePluginsys.path.insert(0, '/home/path....')
Last edit: 16 Apr 2026 13:03 by erikfriesen.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.298 seconds