This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux:在 Raspberry Pi 上输入时、QT 键盘模板小部件不能#39;t 关闭

Guru**** 2562120 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/simulation-hardware-system-design-tools-group/sim-hw-system-design/f/simulation-hardware-system-design-tools-forum/721198/linux-qt-keyboard-template-widget-doesn-t-close-when-enter-on-raspberry-pi

工具/软件:Linux

我使用此链接 http://processors.wiki.ti.com/index.php/Qt_Keyboard_Template 并在 Raspberry PI 上使用 Raspbian OS 运行此链接的示例、我使用此链接 wiki.qt.io/RaspberryPi2EGLFS 交叉编译该链接的 QT

有时、当按下 Enter 按钮关闭小部件时、它不会关闭、看起来像键盘  冻结  

此外,由于 QT 版本,我在包含的所有行中删除 QApplication::UnicodeUTF8

比如

enterButton ->setText (QApplication::translate ("键盘"、"Enter"、0、QApplication::UnicodeUTF8));

更改为  

enterButton ->setText (QApplication::translate ("键盘"、"Enter"、0));

我添加此->SetAttribute (Qt::wa_DeleteOnClose);

在呼叫关闭之前、但键盘小部件仍会死机、为什么?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    Raspberry Pi 是第三方器件、TI 不支持。 请在网络上的其他地方咨询。