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

Terminal is not restored properly from qml & qmlscene tools

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.1
    • QPA: EGLFS
    • None
    • Linux/Other display system

    Description

      On Raspberry Pi (and other EGLFS most likely) the qml & qmlscene tools leave the terminal in an unusable state as code in http://code.qt.io/cgit/qt/qtbase.git/tree/src/platformsupport/fbconvenience/qfbvthandler.cpp is called to disable keyboard and cursor but is not restored properly on exit.

      In cases where exit is handled via a signal & proper Qt app termination it works but for example if the qml tool is called without a filename it will use plain exit() to exit so theĀ  QFbVtHandler destructor is never called to restore the tty.

      A quick fix locally was to add "delete app" before calling noFilesGiven(); in http://code.qt.io/cgit/qt/qtdeclarative.git/tree/tools/qml/main.cpp#n566

      Attachments

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

        Activity

          People

            lagocs Laszlo Agocs
            milang Kaj-Michael Lang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes