Thanks to Christoph Feck for the hint.
BUG: 290536
FIXED-IN: 4.8.0
focusRectOption.rect = textBounds.adjusted(1, 1, -1, -1);
}
focusRectOption.rect = textBounds.adjusted(1, 1, -1, -1);
}
- focusRectOption.state = QStyle::State_Enabled | QStyle::State_Item;
+ focusRectOption.state = QStyle::State_Enabled | QStyle::State_Item | QStyle::State_KeyboardFocusChange;
if (m_selected) {
focusRectOption.state |= QStyle::State_Selected;
}
if (m_selected) {
focusRectOption.state |= QStyle::State_Selected;
}