Results 1 to 1 of 1

Thread: why font CSS can not apply to QPushButton on hover?

  1. #1
    Join Date
    Mar 2009
    Posts
    8
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default why font CSS can not apply to QPushButton on hover?

    I write the css for my demo application:
    css Code:
    1. QPushButton
    2. {
    3. font-size:8px;
    4. color:#333333;
    5. border: 1px solid red;
    6. background-color: green;
    7. }
    8. QPushButton:hover
    9. {
    10. font:bold "Arial";
    11. font-size:20px;
    12. color:blue;
    13. border: 1px solid green;
    14. background-color: red;
    15. }
    To copy to clipboard, switch view to plain text mode 
    but the font size never changed when hover on my buttons. what's the reason?
    Last edited by wysota; 25th May 2009 at 07:31.

Similar Threads

  1. Adding Image to QPushButton
    By Seema Rao in forum Qt Programming
    Replies: 3
    Last Post: 18th November 2011, 09:06
  2. QPushButton not calling repaint when needed?
    By Enygma in forum Qt Programming
    Replies: 5
    Last Post: 13th May 2010, 17:03
  3. What is wrong with my code?
    By Dante in forum Qt Programming
    Replies: 27
    Last Post: 6th April 2009, 07:56
  4. QPushButton in QItemDelegate
    By allbabel in forum Qt Programming
    Replies: 0
    Last Post: 2nd April 2009, 11:45
  5. Qpushbutton
    By iamhere in forum Qt Programming
    Replies: 5
    Last Post: 15th October 2008, 04:40

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.