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

QTableView.setItemDelegateForColumn breaks software

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 1.2.0, dev
    • Fix Version/s: 5.9
    • Component/s: PySide
    • Labels:
    • Environment:
      SO: Ubuntu 13.10 x64
      Kernel: 3.11.0-15-generic
      Python: Python 2.7.5+
    • Commits:
      9274dce455212b928889d3939aaaa8ebc9515657

      Description

      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.

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes