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

Disabled item in QTreeWidget breaks navigation keys

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.13.0 Alpha 1
    • 4.8.x, 5.4.0
    • Widgets: Itemviews
    • None
    • f568bfce641f52b4641b5d8281c99742f1ae6f40

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes