[Qt-interest] changing style of a QListViewItem
Mandeep Sandhu
mandeepsandhu.chd at gmail.com
Wed May 26 10:21:55 CEST 2010
On Wed, May 26, 2010 at 1:43 PM, Andre Somers <andre at familiesomers.nl> wrote:
> On 26-5-2010 9:51, Nishant Sharma wrote:
>> Hi,
>> On double click of a QListViewItem, I want to make that item in bold
>> and underline.
>> Can anyone please let me know how to do that ?
>>
>>
>
> If you want to do more advanced things, you have to resort to a
> delegate, but in this case, you don't need it.
How will setting a role change the appearance of the selected text?
Wouldn't a custom delegate be needed anyway?
IMHO, bold and underlined is just a different way of showing the
"selected" state, so that should be the job of a delegate. CMIIW.
Regards,
-mandeep
>
> André
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
More information about the Qt-interest-old
mailing list