Results 1 to 2 of 2

Thread: Style Sheet speed

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Thanked 58 Times in 56 Posts
    Qt products
    Qt4 Qt5
    Unix/X11 Windows

    Default Style Sheet speed


    I'm trying Style Sheet to change the style of my application.
    The problem is that the speed of the application is reduced very much. The CPU is 50% when drawing some widgets.

    Is this behaviour correct?

    Òscar Llarch i Galán

  2. #2
    Join Date
    Mar 2006
    Mountain View, California
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    MacOS X Unix/X11 Windows

    Default Re: Style Sheet speed

    There is additional overhead when using style sheets, but it shouldn't be that much. Avoid scaled pixmaps if you can.

    Style sheets were meant to style just a few widgets, not the entire application. If you want to create a whole new style, then use the QStyle route instead of style sheets.

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

    ^NyAw^ (24th January 2008)

Similar Threads

  1. Style Sheet on QWizard
    By desch in forum Qt Programming
    Replies: 2
    Last Post: 6th December 2007, 17:12
  2. QToolButton and Style sheet
    By desch in forum Qt Programming
    Replies: 8
    Last Post: 1st December 2007, 08:38
  3. Vertical Scroll Bar - Style Sheet
    By vishesh in forum Qt Programming
    Replies: 2
    Last Post: 18th September 2007, 19:03
  4. Style Sheet color of QComboBox
    By tpf80 in forum Qt Programming
    Replies: 6
    Last Post: 25th June 2007, 02:55
  5. Qt 4.3 Style sheet, new features
    By Angelo Moriconi in forum Qt Programming
    Replies: 2
    Last Post: 12th June 2007, 15:22


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.