Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12.1
-
None
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