Results 1 to 20 of 54

Thread: Still need help: Best way to have application "skins"?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Mar 2007
    Location
    Ukraine, Odessa
    Posts
    140
    Thanks
    15
    Thanked 11 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Best way to have application "skins"?

    Quote Originally Posted by codeslicer View Post
    I have different event handlers which draw buttons which fade in and out when the mouse hovers over them. Then I want a plain skin which uses the system's window manager to do all the work. Does the QStyle class support this situation? Thanks so far though
    That's possible for hovering you should use styles like this
    Qt Code:
    1. {
    2. background-image: url(:/images/Buttons_Styles/b_butt_free.png);
    3. border: none;
    4. }
    5. {
    6. background-image: url(:/images/Buttons_Styles/b_butt_over.png);
    7. border: none;
    8. }
    9. QPushButton:pressed
    10. {
    11. background-image: url(:/images/Buttons_Styles/b_butt_down.png);
    12. border: none;
    13. }
    14. QPushButton:disabled
    15. {
    16. background-image: url(:/images/Buttons_Styles/b_butt_disabled.png);
    17. border: none;
    18. }
    To copy to clipboard, switch view to plain text mode 
    And then use QWidget::setStyleSheet
    C++ & AMD forever

  2. The following 2 users say thank you to THRESHE for this useful post:

    codeslicer (22nd February 2008), spagatoni (25th March 2009)

Similar Threads

  1. dll + application
    By fpujol in forum Qt Programming
    Replies: 11
    Last Post: 15th April 2007, 18:37
  2. Application deployment problem
    By shapirlex in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 13th April 2007, 00:11
  3. Replies: 3
    Last Post: 8th December 2006, 18:51
  4. Replies: 3
    Last Post: 31st March 2006, 18:38

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.