Thread
:
Multi-line (and multi-colored) list items in Qt
View Single Post
TheBurek
2010-10-22 , 15:01
Posts: 108 | Thanked: 329 times | Joined on Apr 2010 @ Bosnia and Herzegovina
#
1
My question is simple (don't know about the answer) - how do I make list items look like this in Qt for Maemo 5?
To be more specific, I want that "special" second row with different color and smaller font. I also need the icons (like in SeriesFinale), so I've created QListWidgetItems with text and icons, added them to a QListWidget and it works great. But I don't have any idea how to add that special text underneath. If I put a newline in item text, it really shows it in the next line, but predictably, with same color and size. I'm still new to Qt, so I don't know where to look. I found
this
, which is kinda like what I want to do, only with buttons. I also read about writing a "delegate", which, if I understood it right, is like writing custom controls/widgets. But this kind of list seems standard for Maemo 5, so I wanted to ask if there is a standard/easy way to do this. Any ideas?
Last edited by TheBurek; 2010-10-22 at
15:03
.
Quote & Reply
|
TheBurek
View Public Profile
Send a private message to TheBurek
Find all posts by TheBurek