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

QTableWidget corner button does not select all cells anymore.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 6.7.0
    • PySide
    • None
    • Windows 11
    • Windows

    Description

      Clicking the top left corner button does not select any cells anymore since updating to 6.7.0. It does however seem to deselect any currently selected cells. Test code:

      #!/usr/bin/env python
      import sys
      from PySide6.QtWidgets import QApplication, QMainWindow, QTableWidget, QTableWidgetItem
      from PySide6.QtCore import QLibraryInfo
      
      
      class MainWindow(QMainWindow):
          """
          Main window of the application.
          """
      
          def __init__(self) -> None:
              super(MainWindow, self).__init__()
      
              # Create QTableWidget
              self.table_widget = QTableWidget(6, 6)
              self.table_widget.setCornerButtonEnabled(True)
      
              # Populate the table with example data
              for row in range(6):
                  for col in range(6):
                      self.table_widget.setItem(
                          row, col, QTableWidgetItem(f"Item {row},{col}"))
      
              # Set the table widget as the central widget of the window
              self.setCentralWidget(self.table_widget)
      
      
      print('Python {}.{}.{} {}'.format(sys.version_info[0], sys.version_info[1],
                                        sys.version_info[2], sys.platform))
      print(QLibraryInfo.build())
      
      
      app = QApplication([])
      window = MainWindow()
      window.show()
      app.exec()
      

      Output:
      Python 3.10.11 win32
      Qt 6.7.0 (x86_64-little_endian-llp64 shared (dynamic) release build; by MSVC 2019) [Python limited API 3.10.11]

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            danmerrino Werner Wessely
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes