Results 1 to 2 of 2

Thread: BackLight of a Button

  1. #1
    Join Date
    Jan 2008
    Posts
    91
    Thanks
    8

    Default BackLight of a Button

    Hi All
    I want to prepare a form, On this form there are two buttons if I press on right arrow key on keyboard, the right button's picture would be lighter.If I press on left key of keyboard, the left button's picture would be lighter. How may i do this ("Sorry for my english")

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: BackLight of a Button

    Reimplement the paint event and change the color of the button depending on whether it has focus or not. Then just make sure pressing arrow keys changes the focus properly.

Similar Threads

  1. question about button
    By narumi in forum Newbie
    Replies: 2
    Last Post: 21st January 2008, 05:44
  2. How can I put a button onto the qLabel?
    By dwlnet in forum Qt Programming
    Replies: 3
    Last Post: 24th August 2007, 09:47
  3. Disable Checkable Button Question
    By jbpvr in forum Qt Programming
    Replies: 9
    Last Post: 20th March 2007, 17:57
  4. Mouse Over event on button
    By vishal.chauhan in forum Qt Programming
    Replies: 9
    Last Post: 10th January 2007, 05:03
  5. Push button double click
    By curtisw in forum Qt Programming
    Replies: 3
    Last Post: 15th February 2006, 16: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
  •  
Qt is a trademark of The Qt Company.