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

QTableWidgetItem and tableWidget function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 1.0.8
    • PySide
    • None
    • Windows XP x64

    Description

      I can't test on another version than 1.0.7 but as I can't find anything on this bug I think that is applicable on the latest version.
      The use of the function tableWidget create a crash of the application.

      You can try this example :

      example.py
      from PySide import QtGui
      
      table = QtGui.QTableWidget()
      table.setRowCount(1)
      table.setColumnCount(1)
      
      item = QtGui.QTableWidgetItem("test")
      table.show()
      table.setItem(0,0, item)
      
      print item.tableWidget()
      print table
      # table.setItem(0,0, QtGui.QTableWidgetItem("test2"))
      # table.removeRow(0)
      
      qtapp.exec_()
      

      The function return the good memory adress but if you try to use the table after calling item.tableWidget() your program close without exception.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            vincesdf Vincent Lanquepin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes