We use it in our model implementation https://github.com/mpvqc/mpvQC/tree/main/mpvqc/models/comments. The implementation is in undo.py and the usage in model.py
petrichor waningtext not yet in the index
My implementation is theoretically very lightweight, with almost no performance penalty.
ëRiCtext not yet in the index
Hmm if there's no example, we should create one ... I will put it on my list when I have some downtime
rainzeeMy implementation is theoretically very lightweight, with almost no performance penalty.
can you add a decorator like asyncslot in qasync for qml?
(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
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
Stefan de KoninkI 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 comm
I've had this recently. check the parent assigned in createEditor.
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
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
ThomasThat looks correct. Hmm.
Ссылка
click to show
click to show
With some LLM help this is the minimum reproducible example. http://stefan.konink.de/test_delegate_commit.py