Results 1 to 3 of 3

Thread: Buttons and focus

  1. #1
    Join Date
    Jul 2010
    Posts
    10
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Buttons and focus

    Hi all.

    My app has three buttons on it. Call it A, B and C. When the app loads it automatically switches to mode A and I keep the button A pressed (buttona.setDown(true)). When the user clicks B the app goes to mode B, keep B pressed and so on...

    Something happens and the user receives a dialog. After the dialog is closed the button is no longer held down. It is something focus related probably. How do I keep one of A, B or C always held down?

  2. #2
    Join Date
    Jun 2010
    Location
    Salatiga, Indonesia
    Posts
    160
    Thanks
    11
    Thanked 32 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    1

    Default Re: Buttons and focus


  3. The following user says thank you to saa7_go for this useful post:

    creep33 (15th July 2010)

  4. #3
    Join Date
    Jul 2010
    Posts
    10
    Thanks
    4
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Buttons and focus

    That is what I was looking for! Thnaks!

Similar Threads

  1. Buttons
    By valy12 in forum Qt Programming
    Replies: 8
    Last Post: 19th April 2010, 13:16
  2. Window focus issues (How to force focus to a window?)
    By montylee in forum Qt Programming
    Replies: 3
    Last Post: 25th April 2009, 02:00
  3. Focus issues / Setting multiple focus
    By ComputerPhreak in forum Qt Programming
    Replies: 1
    Last Post: 16th February 2007, 07:09
  4. Several buttons
    By Mariane in forum Newbie
    Replies: 4
    Last Post: 15th March 2006, 21:50

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.