PDA

View Full Version : itemviewitem and stylesheet



nifei
3rd November 2008, 23:41
hi, all. i need control some itemview's item's appearences with style sheet, that is to say, i can control item's size, boder, background .etc by .qss file.

now, i could change other properties except the tableview's item's width and height. i uses "* :: item{height : mpx;}"and it works in treeview and list view, and "* :: item{background-color:green; border:1px solid black;}"works in all the 3 types of views. so i wonder where can i find a full list of detailed destription of widgets' style, or at least, can i use "* :: item{height : npx; width : mpx;}"to tableview?

The Storm
4th November 2008, 08:14
Hi,

The Qt documentation exaplain well what and how you can customize. :)

http://doc.trolltech.com/4.4/stylesheet.html

nifei
5th November 2008, 06:08
Hi,

The Qt documentation exaplain well what and how you can customize. :)

http://doc.trolltech.com/4.4/stylesheet.html

Thank you. i've read this document many times but cannot find what i need. none of the examples listed in customizing widgets pointed out how to customize an item's size by style sheet. thank you all the same for help me.