Results 1 to 2 of 2

Thread: Tool Button keyboard focus?

  1. #1
    Join Date
    Apr 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Tool Button keyboard focus?

    I have a borderless window with 12 large tool buttons, and I want to let all of them have keyboard focus so they can be choosen by hitting TAB and activated by pressing Space. I am using ToolButtons instead of PushButtons because ToolButtons let me put the image above the text. Is there any way to do that with a PushButton?

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Tool Button keyboard focus?

    I want to let all of them have keyboard focus so they can be choosen by hitting TAB and activated by pressing Space.
    I guess thats how they work

    Just tried the following - added about 6 tool buttons in designer and set them in gridlayout.. then it works with TAB and space as intended.
    Have you done something else in your code ?

Similar Threads

  1. Tool button problem
    By sudhansu in forum Qt Programming
    Replies: 6
    Last Post: 12th February 2010, 09:51
  2. keyboard focus
    By JeanC in forum Qt Programming
    Replies: 2
    Last Post: 27th June 2008, 15:40
  3. Replies: 6
    Last Post: 14th September 2006, 20:02
  4. Replies: 5
    Last Post: 4th August 2006, 23:44
  5. Replies: 2
    Last Post: 24th July 2006, 18:36

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.