[Qt-interest] Query related selection color in Qt
Andre Somers
andre at familiesomers.nl
Wed Jun 23 16:00:12 CEST 2010
On 23-6-2010 15:44, Ramesh wrote:
>
> Yup,
>
> Ya I agree with your words andre,
>
>
Good to hear that it works for you.
FYI:
I am working on a delegate that you can style with CSS. For changing the
color for a selected item in the way you want, this would suffice:
StyleSheetDelegate* ssd = new StyleSheetDelegate(m_view);
QString styleSheet = QString(".ItemIsSelected {color:%1;
background-color:%2}")
.arg(m_view.palette().highlightedText().color().name())
.arg(m_view.palette().highlight().color().name());
ssd->appendStyleSheet(styleSheet);
m_view->setItemDelegate(ssd);
Unfortunately for you, it is not yet quite ready for prime time. I still
have some small issues to iron out.
André
--
Nokia Certified Qt Developer.
Interested in Qt related job offers or freelance Qt consulting work.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100623/4a15ac77/attachment.html
More information about the Qt-interest-old
mailing list