Description
I use custom widgets in Qt Designer (as described in documentation).] Everything works fine under Windows OS.
On Linux (Arch Linux), Qt Designer doesn't load custom widget plugins and shows errors in console:
[user@pc]$ PYSIDE_DESIGNER_PLUGINS=/home/projects/widget_plugins/
[user@pc]$ export PYSIDE_DESIGNER_PLUGINS
[user@pc]$ designer6
PySide6/__init__.py: Unable to import Shiboken from /home/projects/widget_plugins, /usr/lib/python311.zip, /usr/lib/python3.11, /usr/lib/python3.11/lib-dynload, /usr/lib/python3.11/site-packages
qt.pysideplugin: Error running /home/projects/widget_plugins/register_designer_plugins.py: /usr/lib/python3.11/lib-dynload/binascii.cpython-311-x86_64-linux-gnu.so: undefined symbol: _PyUnicode_Ready
qt.pysideplugin: No instance of QPyDesignerCustomWidgetCollection was found.
Contents of register_designer_plugins.py is according to manual and very simple:
from designer_plugins.plugin_date_range_selector import DateRangeSelectorPlugin from PySide6.QtDesigner import QPyDesignerCustomWidgetCollection if __name__ == '__main__': QPyDesignerCustomWidgetCollection.addCustomWidget(DateRangeSelectorPlugin())
I found that similar errors were reported in past and were corrected in previous versions of Shiboken - this is the reason why I set Component=Shiboken.