Results 1 to 3 of 3

Thread: keyboard focus

  1. #1
    Join Date
    Dec 2007
    Location
    Groningen Netherlands
    Posts
    182
    Thanks
    16
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default keyboard focus

    Hello,

    Qt 4.4 on linux.
    Is there a way to not let my app steal keyboard focus when it does it's show() on the mainwindow?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: keyboard focus

    A camel can go 14 days without drink,
    I can't!!!

  3. #3
    Join Date
    Dec 2007
    Location
    Groningen Netherlands
    Posts
    182
    Thanks
    16
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: keyboard focus

    Thanks.

    Unfortunatly it does not work.

    Qt Code:
    1. showfunction()
    2. {
    3. makesomethingnice();
    4. show();
    5. clearFocus();
    6. }
    To copy to clipboard, switch view to plain text mode 

    This function gets called at startup and by a timer. But when I'm typing in some other app and this program starts or the timerevent fires I loose focus from the application where I'm typing.

Similar Threads

  1. QTableView focus issue
    By gemidjy in forum Qt Programming
    Replies: 4
    Last Post: 19th February 2008, 16:51
  2. Force focus to a QTabWidget page's widget
    By thomaspu in forum Qt Programming
    Replies: 1
    Last Post: 2nd January 2008, 07:54
  3. Tab/Enter focus problem
    By b1 in forum Qt Programming
    Replies: 4
    Last Post: 24th October 2006, 00:34
  4. Replies: 6
    Last Post: 14th September 2006, 21:02
  5. Replies: 2
    Last Post: 24th July 2006, 19: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.