htdeveloper Posted July 26, 2022 Share Posted July 26, 2022 Hello, the problem with the customapp class inUnigine2.15.1 SIM trial version is that the reference program created through customapp and the input text control created by widgeteditline cannot use the input method switching function for Chinese input. What is the solution to this problem. AppQt.h AppQt.cpp Link to comment
karpych11 Posted July 26, 2022 Share Posted July 26, 2022 Hello, You can try to fix this by making the following changes: 1) For the RenderWindow widget add Qt::WA_InputMethodEnabled attribute. 2) For the event filter add QInputMethodEvent handling. You need to pass all entered characters to the engine using keyPressUnicode. After that the input panel should appear, but only in default position. AppQt.h AppQt.cpp Link to comment
htdeveloper Posted July 26, 2022 Author Share Posted July 26, 2022 2 hours ago, karpych11 said: Hello, You can try to fix this by making the following changes: 1) For the RenderWindow widget add Qt::WA_InputMethodEnabled attribute. 2) For the event filter add QInputMethodEvent handling. You need to pass all entered characters to the engine using keyPressUnicode. After that the input panel should appear, but only in default position. AppQt.h 4.94 kB · 2 downloads AppQt.cpp 22.63 kB · 2 downloads Thank you. The problem has been solved Link to comment
Recommended Posts