[Qt-interest] Stylesheet weirdness on QTreeWidget

Daniele Esposti expo at expobrain.net
Wed Mar 23 01:15:37 CET 2011


Hi guys,

setting a border to a QTreeWidget item disables the background color
of the item when is selected.

This is the stylesheet which reproduce the problem:

QTreeWidget {
	background: lightYellow;
	alternate-background-color: white;
}
QTreeWidget::item {
	border-bottom: 1px solid lightGray;
}

If the border-bottom property is removed leaving the item stylesheet
empty the item's background behaviour is correct.

I've attached an .ui file to show the problem in action using Qt
Designer's preview

-- 
Daniele Esposti

My Blog http://www.expobrain.net
LinkedIn http://www.linkedin.com/in/danieleesposti
Twitter http://www.twitter.com/#!/expobrain
-------------- next part --------------
A non-text attachment was scrubbed...
Name: css.ui
Type: application/octet-stream
Size: 1662 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110323/c6cf51d2/attachment.obj 


More information about the Qt-interest-old mailing list