[Qt-interest] Query related selection color in Qt
Ramesh
ramesh.bs at robosoftin.com
Wed Jun 23 16:14:11 CEST 2010
Glad to hear from you that there is some alternative.
Ill check out.
Thanks lot J
From: Andre Somers [mailto:andre at familiesomers.nl]
Sent: Wednesday, June 23, 2010 7:30 PM
To: Ramesh
Cc: qt-interest at trolltech.com
Subject: Re: [Qt-interest] Query related selection color in Qt
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.
-----------------------------------------------
Robosoft Technologies - Come home to Technology
Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100623/e46eb729/attachment.html
More information about the Qt-interest-old
mailing list