Results 1 to 3 of 3

Thread: itemviewitem and stylesheet

  1. #1
    Join Date
    Oct 2008
    Location
    Beijing China
    Posts
    77
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    21
    Thanked 3 Times in 3 Posts

    Default itemviewitem and stylesheet

    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?

  2. #2
    Join Date
    Aug 2007
    Posts
    166
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    16
    Thanked 14 Times in 14 Posts

    Default Re: itemviewitem and stylesheet

    Hi,

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

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

  3. #3
    Join Date
    Oct 2008
    Location
    Beijing China
    Posts
    77
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    21
    Thanked 3 Times in 3 Posts

    Default Re: itemviewitem and stylesheet

    Quote Originally Posted by The Storm View Post
    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.