Results 1 to 2 of 2

Thread: Difference between QStyle and Style Sheet

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: Difference between QStyle and Style Sheet

    From the Qt docs...
    The QStyle class is an abstract base class that encapsulates the look and feel of a GUI. More...
    and..
    Style sheets are applied on top of the current widget style, meaning that your applications will still look native, but any style sheet constraints will be taken into consideration. Unlike palette fiddling, style sheets offer guarantees: If you set the background color of a QPushButton to be red, you can be assured that the button will have a red background in all styles, on all platforms.
    So basically it seems that QStyle does the all drawing, taking into consideration style sheets
    Hope I am right

  2. The following user says thank you to aamer4yu for this useful post:

    nifei (17th November 2008)

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.