Results 1 to 2 of 2

Thread: Subclassing default style

  1. #1
    Join Date
    Mar 2009
    Posts
    39
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Windows

    Default Subclassing default style

    I want to make minor changes to some of the default pixelMetrics in the active style, for example changing the PM_SmallIconSize.
    I understand that the proper way would be subclassing the style but that would imply knoing previously the default style active on the particular platform the program runs.

    What would be a clean/simple way to do that ?

    thanks!

  2. #2
    Join Date
    Jul 2009
    Posts
    74
    Thanks
    2
    Thanked 6 Times in 6 Posts

    Default Re: Subclassing default style

    solution here:
    http://developer.qt.nokia.com/faq/an..._change_a_smal


    Added after 7 minutes:


    since qt 4.6 a better and easier solution:
    QProxyStyle
    Last edited by javimoya; 29th December 2010 at 18:12.

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

    thru (29th December 2010)

Similar Threads

  1. Getting the name of the default style
    By gregsan in forum Qt Programming
    Replies: 4
    Last Post: 28th September 2011, 19:00
  2. Replies: 0
    Last Post: 9th May 2010, 14:14
  3. Do Qt Style Sheets support List-style-image?
    By daiheitan in forum Qt Programming
    Replies: 6
    Last Post: 12th March 2010, 01:41
  4. Problems with Gradient style used through Style sheet on ARM platform
    By puneet.narsapur in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 25th January 2010, 12:48
  5. Replies: 1
    Last Post: 7th February 2007, 00:12

Tags for this Thread

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.