Results 1 to 2 of 2

Thread: Static compiled Qt application can not catch keyboard event

  1. #1
    Join Date
    Apr 2017
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Static compiled Qt application can not catch keyboard event

    Hi,everyone,
    I used embedded Qt ,the version is 4.7.3. The static compiled application can not catch keyboard event. If i used Qt as shared the keyboard worked well.
    what's the reason?

  2. #2
    Join Date
    Nov 2014
    Posts
    32
    Thanked 1 Time in 1 Post
    Qt products
    Platforms
    Windows

    Default Re: Static compiled Qt application can not catch keyboard event

    3
    down vote
    accepted


    Can not believe this but setting the QWS_KEYBOARD variable as null solved the problem. Found it in the Qt developer FAQ http://developer.qt.nokia.com/faq/an...eyboard_dev_tt

    export QWS_KEYBOARD=""

    Well, it did not completely solve the problem since I still have to include the native keypad along with the USB keyboard.

    Anyway, I am able to move to fields using the arrow/TAB keys. Text input works well. Although CAPS-LOCK and NUM-LOCK do not seem to work. SHIFT works. I am able to terminate the application by Ctrl+Alt+Bkspce. So, for the time being, I am able to input text at least.

Similar Threads

  1. Replies: 5
    Last Post: 12th July 2014, 05:07
  2. Replies: 4
    Last Post: 21st July 2013, 23:06
  3. Replies: 3
    Last Post: 1st June 2011, 16:32
  4. Replies: 2
    Last Post: 29th April 2010, 13:39
  5. Can I use delegate to catch mouse and keyboard events
    By hubbobubbo in forum Qt Programming
    Replies: 0
    Last Post: 29th April 2010, 13:00

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.