Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.9.1, 6.8.3
-
None
-
Windows 11 Family 24H2
Python 3.11.4
Description
I'm trying to call the setItemDelegateForColumn method on two column of a QAbstractTableModel that I implemented. It works perfectly fine when called on either the first or the second column, but it systematically crashes when called on both. (Full code attached)
table.setItemDelegateForColumn(0, MultiTextDelegate())
table.setItemDelegateForColumn(1, MultiTextDelegate())
When called on both columns, the window loads for a few seconds, and then crashes without any error message. Running with python -X dev main.py got me the following message though :
Windows fatal exception: access violation
Current thread 0x0000074c (most recent call first):
File "C:\...\main.py", line 76 in <module> (line 76 is app.exec())
I want to add that I'm not an expert, I might be missing something obvious, but I've been playing with this for a few days, and I still can't figure out what's wrong from my side
Attachments
Issue Links
- relates to
-
PYSIDE-219 QTableView.setItemDelegateForColumn breaks software
-
- Closed
-
-
PYSIDE-226 setItemDelegateForColumn Crash
-
- Closed
-
Gerrit Reviews
For Gerrit Dashboard: PYSIDE-3132 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
658118,2 | Fix crash when calling setItemDelegateForColumn/Row() repeatedly | dev | pyside/pyside-setup | Status: NEW | 0 | +1 |