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

Disabled item in QTreeWidget breaks navigation keys

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Fixed
    • Affects Version/s: 4.8.x, 5.4.0
    • Fix Version/s: 5.13.0 Alpha 1
    • Component/s: Widgets: Itemviews
    • Labels:
      None
    • Commits:
      f568bfce641f52b4641b5d8281c99742f1ae6f40

      Description

      Easy to reproduce: Create a new window, add a QTreeWidget with a couple of items then in the application code append a disabled item to the widget:

      QTreeWidgetItem *disabledItem = new QTreeWidgetItem(QStringList() << "last");
      disabledItem->setDisabled(true);
      ui->treeWidget->addTopLevelItem(disabledItem);

      Now the page-down and end buttons won’t work on the widget, probably because the last item can’t be selected.

      It would make more sense if the last enabled item would be selected instead.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              chehrlic Christian Ehrlicher
              Reporter:
              tannin Sebastian
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes