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

QTableView.setItemDelegateForColumn breaks software

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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

    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

              crmaurei Cristian Maureira-Fredes
              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