Results 1 to 2 of 2

Thread: Qt Stylesheet

  1. #1
    Join Date
    Jan 2007
    Location
    Paris
    Posts
    459
    Thanks
    98
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt5

    Default Qt Stylesheet

    http://doc.trolltech.com/4.5/qwidget.html#setStyle

    Warning: Qt style sheets are currently not supported for custom QStyle subclasses. We plan to address this in some future release.
    Anyone knows why ? Is there a way to bypass this ?

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Qt Stylesheet

    Quote Originally Posted by bunjee View Post
    Anyone knows why ?
    Because the style sheet support itself was implemented as a QStyle subclass, namely QStyleSheetStyle.

    Is there a way to bypass this ?
    Currently, no. QStyleSheetStyle is a private class.
    J-P Nurmi

  3. The following user says thank you to jpn for this useful post:

    bunjee (22nd January 2009)

Similar Threads

  1. Replies: 7
    Last Post: 12th January 2011, 22:01
  2. Styling QComoBox using CSS Stylesheet
    By bjoernbg in forum Qt Programming
    Replies: 1
    Last Post: 6th October 2010, 23:12
  3. Q_OBJECT and styleSheet
    By babu198649 in forum Newbie
    Replies: 1
    Last Post: 9th December 2008, 06:17
  4. Replies: 8
    Last Post: 17th March 2008, 14:04

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.