Details
-
Bug
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
4.7.3
-
None
-
TI Davinci (ARM), Qt 4.7.3 from Buildroot, Linux
Description
When using QWS_KEYBOARD="[USB|LinuxInput]:/dev/.." the serial console does block any output after creating the QApplication object.
The reason is a terminal setting which is only useful for QWS_KEYBOARD="tty:/dev/tty0", since it blocks all keys with the argument, that CTRL+C should not kill the application when trying to copy text. When using an USB-keyboard, you will never have the keyboard input on your tty (on embedded systems).
See attached patch (not tested).
For the workaround I just undo the TTY modifications:
// Save terminal settings int m_tty_fd = 0; struct ::termios termdata; tcgetattr(m_tty_fd, &termdata); QApplication app( argc, argv, QApplication::GuiServer ); // Restore terminal settings tcsetattr(m_tty_fd, TCSANOW, &termdata);