Results 1 to 1 of 1

Thread: Custom look for buttons

  1. #1
    Join Date
    Sep 2013
    Posts
    44
    Thanks
    9
    Qt products
    Qt5
    Platforms
    MacOS X Windows Android

    Default Custom look for buttons

    I want to personalize the look of my app.
    I am making a calculator, and want to make the buttons look different.
    they should look like the google calculator.
    (should have pointed edges.)
    when I press, it should show another image(a pressed form )
    and when I hover, it should show another image .
    I am totally new, so how do I start ?

    I used this in my button pusButton stylesheet
    QPushButton#pushButton {
    background-color:yellow
    }
    QPushButton#pushButtonressed {
    background-color: rgb(224, 0, 0);
    }


    QPushButton#pushButton:hover {
    background-color: rgb(224, 255, 0);

    }

    when I hover my mouse over it, it changes color, like I expect it to , But the hover color remains even when I press the button. I tried changing the order, but its still the same problem . little new in Qt.
    Last edited by harvey_slash; 3rd October 2013 at 16:14.

Similar Threads

  1. How to custom Buttons in QColorDialog
    By picobsd in forum Qt Programming
    Replies: 3
    Last Post: 31st August 2011, 11:37
  2. Custom buttons using style sheets
    By GrahamLabdon in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2011, 22:53
  3. custom shaped buttons
    By jsabater in forum Qt Programming
    Replies: 5
    Last Post: 2nd July 2009, 15:17
  4. Custom buttons problem
    By giotto in forum Qt Programming
    Replies: 7
    Last Post: 7th February 2008, 22:56
  5. Main window with custom buttons ?
    By probine in forum Qt Programming
    Replies: 1
    Last Post: 22nd November 2006, 07:32

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.