Jump to content

[SOLVED] Problems with customapp class in Unigine2.15.1 SIM trial version


photo

Recommended Posts

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

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
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
  • silent changed the title to [SOLVED] Problems with customapp class in Unigine2.15.1 SIM trial version
×
×
  • Create New...