Hello all. I need your advice. I have a QListWidget, and QListWidgetItem
QListWidgetItem *item = new QListWidgetItem;
item->setSizeHint(size);
ui.listWidget->addItem(item);
and I add my handmade navigation widget to item
ui.listWidget->setItemWidget(itm, navWidget);
Now I change background for selected item
QListWidget:item:selected:active
{
background: gray;
color: yellow;
}
and I want my navigation widget changed text color when item, to which it belongs, is selected. If another item selected, previous item navigation widget return his previous color text. How I can release this task?
Bookmarks