×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2009
    Location
    ભારત->ગુજરાત->ભાવનગર
    Posts
    279

    Question How to Color the Button in QT??

    I don't know how to make the color Button in QT an also wat to do if i want to change the color of button while pressing the button?????

  2. #2
    Nokia Developer Champion
    Join Date
    Sep 2007
    Location
    Bhavnagar
    Posts
    928

    Re: How to Color the Button in QT??

    hi,
    you can use stylesheet to do it.

    Please refer this article:
    How_to_make_a_stylesheet-I

    Regards
    Jajal Mehul

  3. #3
    Nokia Developer Champion
    Join Date
    Sep 2007
    Location
    Bhavnagar
    Posts
    928

    Re: How to Color the Button in QT??

    Hi,

    here is the simple example to change the color of the button.
    Code:
    button->setStyleSheet("* { background-color: rgb(255,125,100) }");
    Jajal Mehul

Similar Threads

  1. Dialog button vs softkey button
    By apitoman in forum Symbian User Interface
    Replies: 2
    Last Post: 2011-07-19, 12:28
  2. Add a control (e.g. button) programmatically
    By ViRuSTriNiTy in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-01-02, 21:05
  3. RNotifier Notify(..) only one button
    By marcinkrol84 in forum Symbian
    Replies: 1
    Last Post: 2007-06-22, 16:09
  4. Nokia E62/E61 kill button
    By regis.melo in forum Mobile Java General
    Replies: 1
    Last Post: 2007-05-14, 17:55
  5. command button problem with s60 phones
    By jonneymendoza in forum Mobile Java General
    Replies: 1
    Last Post: 2007-03-23, 13:28

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •