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: Qt keyboard Template widget doesn't close when enter on Raspberry Pi

Tool/software: Linux

I use this link http://processors.wiki.ti.com/index.php/Qt_Keyboard_Template  and run the example of this on raspberry pi with Raspbian OS, and I was cross compile QT for it with this link wiki.qt.io/RaspberryPi2EGLFS

some times when Push enter button to close the widget it's doesn't close and look likes keyboard  freezes 

also I delete QApplication::UnicodeUTF8  in all line that contain , because of version of QT

like

enterButton->setText(QApplication::translate("Keyboard", "Enter", 0, QApplication::UnicodeUTF8));

to 

enterButton->setText(QApplication::translate("Keyboard", "Enter", 0));

I add this->setAttribute(Qt::WA_DeleteOnClose);

before call close but still some times keyboard widget freezes, why?