[Qt-interest] Styling QTreeView
richard oehlinger [celum]
richard.oehlinger at celum.com
Mon Nov 2 16:43:49 CET 2009
Hello!
Has anyone ever tried to set a background image for an item in QTreeView
with only one column (header is hidden). I thought it would alter the
full row (including + and the lines of the tree) but it only changes the
background for the text. But a huge problem is, that if I hover over
e.g. the "+" the background there also changes but won't be reset to
nothing after the mouse leaves that area. Is there a pseudo class for
the whole row? I would need something like QTreeView::row:hover to
change the whole row (would also be very interesting to have for
QTableView)
I'm using QPlastiqueStyle.
My stylesheet:
QTreeView::item:hover {
background-image: /*some image*/;
}
Has anyone a idea?
Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091102/2234d054/attachment.html
More information about the Qt-interest-old
mailing list