开发者

Custom items in Tree View Widget

I'm working on a inst开发者_如何学编程ant messaging client and i am looking for a way to display the contacts like Pigdin or Yahoo Messenger does. I was looking at a Tree Widget, but is there a way to customize the items? I would like them to look something like this:

Custom items in Tree View Widget


It might be better to use QTreeView instead of QTreeWidget. Then you can use the Qt's model/view system and create a new item delegate class to handle the painting.

And read also this question: QListView/QListWidget with custom items and custom item widgets


I have a project that might be of some interest to you. It's qt4 based and includes a Jabber messenger client - and a contact list with icons.

http://saje.googlecode.com

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜