Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-3132

"Windows fatal exception: access violation" on ItemDelegateOnColumn

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.10.0, 6.9.2
    • 6.9.1, 6.8.3
    • PySide
    • None
    • Windows 11 Family 24H2
      Python 3.11.4
    • Windows
    • ff85670ba (dev), eba1ad034 (6.9)

      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

        1. image-2025-07-02-19-31-34-849.png
          image-2025-07-02-19-31-34-849.png
          6 kB
        2. image-2025-07-02-19-32-21-049.png
          image-2025-07-02-19-32-21-049.png
          6 kB
        3. main.py
          2 kB
        4. pyside3132_pyqt.py
          3 kB
        5. pyside3132_stack.txt
          54 kB
        6. pyside3132.py
          3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kleint Friedemann Kleint
            fredrik2002 Frédrik Calvet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes