Results 1 to 1 of 1

Thread: QListWidget ScrollArea Style

  1. #1
    Join Date
    Jan 2011
    Location
    Sri Lanaka
    Posts
    64
    Thanks
    39
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Post Re: QListWidget ScrollArea Style

    this is QListWidget Stylesheet,After applying the style the Scroll area shows in windows classic style
    i need it to be in windows7 default style

    Qt Code:
    1. QHeaderView::section {
    2. background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:0.892, stop:0 rgba(212, 236, 255, 255), stop:1 rgba(225, 240, 255, 255));
    3. border: 1px solid rgb(188,188,191);
    4. }
    5. gridline-color: rgb(188, 188, 188);
    6. background-color: rgb(255, 255, 255);
    7. alternate-background-color: qlineargradient(spread:pad, x1:0, y1:0.482955, x2:1, y2:0.517, stop:0 rgba(243, 239, 255, 234), stop:1 rgba(243, 239, 255, 218));
    8. }
    9. /*QListWidget::item
    10. {
    11. margin: 4px;
    12. }*/
    13. QListWidget::item::hover{
    14. background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(75, 154, 234, 64), stop:1 rgba(62, 118, 216, 171));;
    15. border: 1px solid qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(80, 166, 252, 223), stop:1 rgba(62, 118, 216, 171));
    16. }
    17. QListWidget::item::selected{
    18. background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(229, 255, 189, 245), stop:1 rgba(229, 255, 189, 255));
    19. selection-color:black;
    20. }
    21. QListWidget::item::sub-control
    22. {
    23. height: 23px;
    24. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by deepal_de; 10th June 2011 at 06:57.

Similar Threads

  1. scrollArea
    By skizzik in forum Qt Programming
    Replies: 1
    Last Post: 12th January 2011, 12:55
  2. QListWidget style icon selection
    By jeremic in forum Qt Programming
    Replies: 1
    Last Post: 26th August 2010, 13:28
  3. Autoscroll in ScrollArea
    By BalaQT in forum Qt Programming
    Replies: 2
    Last Post: 26th October 2009, 05:37
  4. scrollArea not updating
    By user in forum Qt Programming
    Replies: 9
    Last Post: 3rd October 2007, 08:17
  5. QTreeWidget without the ScrollArea?
    By Paalrammer in forum Newbie
    Replies: 5
    Last Post: 13th February 2007, 19:06

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.