NIteLordz
12th February 2015, 01:12
I have a QTreeWidget with a few QTreeWidgetItems in it. Each QTreeWidgetItem has a custom editor that is attached using setItemWidget(...). I have modified my style sheet as follows
QTreeWidget::item:selected:active{
background-color: transparent;
color: #3d80df;
}
QTreeWidget::item:selected:!active {
background-color: transparent;
color: #3d80df;
}
so that when an item is selected, the color turns blue. However, the widget that is in column 1 that was set with setItemWidget is not showing a selected state.
What property in the style sheet do i need to modify, or how can i achieve this functionality.
QTreeWidget::item:selected:active{
background-color: transparent;
color: #3d80df;
}
QTreeWidget::item:selected:!active {
background-color: transparent;
color: #3d80df;
}
so that when an item is selected, the color turns blue. However, the widget that is in column 1 that was set with setItemWidget is not showing a selected state.
What property in the style sheet do i need to modify, or how can i achieve this functionality.