Results 1 to 2 of 2

Thread: How to set a custom style to specific widgets in an application

  1. #1
    Join Date
    Jul 2011
    Location
    Paris
    Posts
    31
    Thanks
    5
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default How to set a custom style to specific widgets in an application

    Hello,

    I have made a style subclass where I am creating a custom look and feel. I want to use this style to only the QDialogs of my application that are more than one at the moment. When I set my custom style for the sake of testing it to the whole application it works. But When I try to set it to specific widgets it doesn't do anything.

    Is there something in particular that I must do to apply a style to the widgets I want in an application??

    I would appreciate any help, thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: How to set a custom style to specific widgets in an application

    show your code, and style sheet.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Replies: 0
    Last Post: 30th April 2012, 15:17
  2. How to apply style for widget over application style
    By muthu-ms in forum Qt Programming
    Replies: 5
    Last Post: 21st October 2011, 08:16
  3. Replies: 0
    Last Post: 15th May 2009, 15:38
  4. Qt specific questions regaring coding style
    By Raistlin in forum Qt Programming
    Replies: 4
    Last Post: 26th February 2007, 09:14
  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.