Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-23848

QWS Kebyoard driver blocks console

    XMLWordPrintable

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);
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            bluespirit Karl Krach
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes