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

QTableView.setItemDelegateForColumn breaks software

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.9
    • 1.2.0
    • PySide
    • SO: Ubuntu 13.10 x64
      Kernel: 3.11.0-15-generic
      Python: Python 2.7.5+
    • 9274dce455212b928889d3939aaaa8ebc9515657

      I'm trying to create a simple QTableView with one editable checkbox column.

      I've used the tutorial of Robin Burchell (http://blog.rburchell.com/2010/02/pyside-tutorial-model-view-programming_22.html) as a base and converted it to a QTableView with a delegate to draw a textbox on the first column.

      When i use the method "setItemDelegateForColumn" (line 250) the program breaks with segmentation fault ("Process finished with exit code 139"). If I use the method "setItemDelegate" instead it works fine.

      To test my code I just converted the code to use pyQt instead (change imports on lines 9-10 and Slot on lines 225-274) and it works ok.

      Code to reproduce the error attached.

        1. teste_modelview.py
          12 kB
          Nataniel P. Borges. Junior
        2. pyside-219-teste_modelview.py
          12 kB
          Christian Tismer
        For Gerrit Dashboard: PYSIDE-219
        # Subject Branch Project Status CR V

            crmaurei Cristian Maureira-Fredes
            natanieljr Nataniel P. Borges. Junior
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes