[Qt-interest] Query related selection color in Qt

Ramesh ramesh.bs at robosoftin.com
Thu Jun 24 11:01:50 CEST 2010


Ya andre, you are right.
I do agree with you, I didn't think in general, I just thought it from
application point of view..
As you mentioned out of all, Rich text is one of the major aspect listView
is suffering.. :(

Thanks for enlighten me in this aspect. I never thought a small query would
bring up so many things.
Gud luck.. Let me know once you have implemented them..

Thanks lot.. :)..


-----Original Message-----
From: Andre Somers [mailto:andre at familiesomers.nl]
Sent: Thursday, June 24, 2010 1:30 PM
To: Ramesh
Cc: qt-interest at trolltech.com
Subject: Re: [Qt-interest] Query related selection color in Qt

On 24-6-2010 8:47, Ramesh wrote:
> One question I feel to ask now, i didn’t understand why are you using the
> style sheet delegate class. Instead you can set the style sheet directly
to
> listview by specifying what suppose to be taken place when the item is
> highlighted...
>
You know what? That is a very good question! It turns out you already
can do more with style sheets on item views than I thought possible.
Thanks for pointing that out.

However, I think there is still a use case for the delegate, as it
provides functionality the standard item can not (please correct me if
I'm wrong!):
* you can make styles apply depending on things like column and row numbers
* you can make styles apply depending on data roles and flags
* more supported properties (like text alignment)
* full rich text support

Still, for things like your usecase, it turns out you don't need it, and
you could just have applied a style sheet to your view and be done. Much
simpler. A slight dissapointment for me (invested time in something that
turns out is not as useful as I hoped it would be), but good news for
every body else!

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.



More information about the Qt-interest-old mailing list