Custom widget management

More
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.

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

More
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?

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

More
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.py
import user_plugins from user_plugins import *
and in ~/.designer/plugins/python/user_plugins.py
import sys sys.path.insert(0, "/home/path....")
from mod_plugin import somePlugin
and in qt_handler.py at top
sys.path.insert(0, '/home/path....')
It works ok, just one root mode needed that way
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.103 seconds
Powered by Kunena Forum