简体   繁体   中英

Remote execution of Qt application causes loss of keyboard input on Linux

I am using Eclipse CDT with Qt plugin. Working on Debian without X, running the GUI with Qt's QWS server.

Simply, I am starting a regular cpp thread doing the logical work and then starting a standart QApplication execution. Works fine on the target machine locally. But when I start the program remotely from Eclipse's Remote System Explorer service or start to debug with gdbserver, the keyboard input is not handled correctly, randomly picks up some of the keyboard events ie, it is in a racing condition. However, the mouse input works just fine.

I am aware the question is not clear enough but I couldn't figure how to focus on the problem. I can provide additional feedback on demand.

Thanks in advance.

Generally when you get odd behavior with QT and input handling, you've somehow mucked up QT's finite state processing loop. You're running in a debug environment, which always tends to mess things up just enough to make them more trouble than they're worth. Can you move to trying to test it on a remote X display?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM