marwyn
5th July 2011, 17:07
Hi !
I'm currently working on a QHeaderView, styling it with a stylesheet. I'm almost done, i just can't find the way to set a background-color to the QHeader::section used for sorting...
In the Qt doc (here (http://doc.qt.nokia.com/latest/stylesheet-examples.html#customizing-qheaderview)), I found this example:
QHeaderView::section:checked
{
background-color: red;
}
I tried it but the :checked pseudo-state does not seem to do anything.
What does it do ??
Is there a way to achieve my goal ?
Thanks,
Marwyn
I'm currently working on a QHeaderView, styling it with a stylesheet. I'm almost done, i just can't find the way to set a background-color to the QHeader::section used for sorting...
In the Qt doc (here (http://doc.qt.nokia.com/latest/stylesheet-examples.html#customizing-qheaderview)), I found this example:
QHeaderView::section:checked
{
background-color: red;
}
I tried it but the :checked pseudo-state does not seem to do anything.
What does it do ??
Is there a way to achieve my goal ?
Thanks,
Marwyn