Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-115635

QTest.keySequence with Shift modifier breaks QTableWidget.selectRow/selectColumn

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 6.4.0, 6.5.1, 6.5.2
    • Widgets: Itemviews
    • None
    • Linux/Other display system, Windows

    Description

      After QTest.keySequence(window, "Shift+A"), QTableWidget.selectRow (and selectColumn) are ineffective. The Python example code at PYSIDE-2407 shows the problem. A minimum example is roughly:

      application = QApplication()
      window = QMainWindow()
      QTest.keySequence(window, "Shift+A")
      table = QTableWidget(1, 1)
      item = QTableWidgetItem()
      table.setItem(0, 0, item)
      table.selectRow(0)
      assert table.selectedItems() == [item]
      

      (I do not have a C++/Qt dev environment available.)

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              bers bers bers
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes