ChatCrawlersearch across public Telegram Open the app
Q

Qt for Python (PySide/Shiboken)

386 members
(irc) WereCatf[M]: Any idea why I'm getting ERROR: ld.so: object 'libpython3.14.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. when launching pyside6-designer and then within the app, loading my custom widgets doesn't work with the About plugins menu showing an error Cannot load library /usr/lib/x86_64-linux-gnu/qt6/plugins/designer/libPySidePlugin.so: /usr/lib/x86_64-linux-gnu/qt6/plugins/designer/libPySidePlugin.so: undefined
(irc) WereCatf[M]: symbol: Py_Finalize? I'm on Kubuntu 26.04, if that's of any consequence.
(irc) themill: LD_PRELOAD is an unusual thing to have there, and trying to load the unversioned .so is going to problematic unless you happen to have various -dev packages installed
(irc) WereCatf[M]: Well, it's not me trying to load some .so, it's pyside6-designer, so I have no idea what's going on
(irc) WereCatf[M]: It does the same thing whether I install pyside6 from Kubuntu's repos or via pip in a virtual environment
(irc) WereCatf[M]: Okay, you mentioned the -dev-packages: I didn't realize I'd need those as well since I'm not working on developing PySide6 itself, but after just installing every pyside6-package in the repos, it's now working
(irc) WereCatf[M]: I guess pyside6-tools should have its dependencies adjusted so as to actually install everything needed
(irc) themill: hmm... it would be ick for pyside6-tools to install python3-dev just to get a symlink in place. But that particular but of the pyside_tool.py code looks fragile enough to get it to work portably that maybe we will
(irc) WereCatf[M]: Just my opinion, so do with it what you will, but IMO pyside6-designer not working is worse than installing some extra dev-dependencies.
P
(irc) themill: I don't know why it would be trying to load that .so via LD_PRELOAD anyway, and not just link it. But yes, the easy way to work around it is to just throw in an extra dependency
S
I have a very stupid problem. Every time a Delegate within a QTableView is committed. I get the error message: QAbstractItemView::commitData called with an editor that does not belong to this view Where should I look for when this message is created? (Every commitData connect has already been commented out) QTableView -> QStyledItemDelegate
class JourneyDelegate(QStyledItemDelegate): def init(self, tdt_model, day_type_model, parent=None): super().init(parent) self.tdt_model = tdt_model self.day_type_model = day_type_model def createEditor(self, parent, option, index): row = index.row() if row == 0: # TimeDemandType editor = QComboBox(parent) editor.setModel(self.tdt_model) return editor elif row == 1: # Calendar Variant editor = QComboBox(parent) editor.setModel(self.day_type_model) return editor elif row >= 3: # Time entry editor = QLineEdit(parent) # editor.nextRowRequested.connect(lambda: self._go_to_next(editor)) return editor return None
S
Ifthe parent of createEditor should not be used... then I am quite confused
The commit from the QTableView looks like this: COMMIT DATA: <PySide6.QtWidgets.QLineEdit(0x55859faf8620) at 0x7f84eeb92540> editor parent: <PySide6.QtWidgets.QWidget(0x55859f8c5690, name="qt_scrollarea_viewport") at 0x7f84fede6d40> QAbstractItemView::commitData called with an editor that does not belong to this view
S
It seems to be triggered by nextRowRequested in thing.
T
Yeah. The default behavor (horizontal tabbing) works. This is inside the logic triggered by the Enter key handling
Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog