-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
6.7, 6.8, 6.9.0 Beta1
-
-
c3d2a4972 (dev), 7cab94a4c (6.9)
It is very hard to make out the selection on some displays. Especially with alternating row colors. (Items 42-47 are selected)

Compare to the native look in File explorer.

Code:
QTreeWidget* MainWindow::createTreeWidget()
{
auto treeWidget = new QTreeWidget;
treeWidget->setHeaderLabel("Items");
treeWidget->setAlternatingRowColors(true);
treeWidget->setSelectionMode(QAbstractItemView::ExtendedSelection);
treeWidget->setSortingEnabled(true);
for (int i = 1; i <= 100; ++i) {
QTreeWidgetItem* item = new QTreeWidgetItem(treeWidget);
item->setText(0, QString("Item %1").arg(i));
item->setCheckState(0, Qt::Unchecked);
}
return treeWidget;
}
- resulted in
-
QTBUG-135418 REG->6.9.0: Windows 11 Style: Selection in Qt Designer looks weird
-
- Open
-
-
QTBUG-137726 Highlighted text color remain black in windows11 style
-
- In Review
-
| For Gerrit Dashboard: QTBUG-133118 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 623376,2 | QWindows11Style: Use Highlight color for ItemView with alternating rows | dev | qt/qtbase | Status: MERGED | +2 | 0 |
| 625846,2 | QWindows11Style: Use Highlight color for ItemView with alternating rows | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
| 625873,1 | QWindows11Style: Use Highlight color for ItemView with alternating rows | 6.8 | qt/qtbase | Status: ABANDONED | 0 | 0 |