Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: 在Linux下 NCW 模式下无法输入中文问题。 #363

Open
ravenq opened this issue Jan 10, 2024 · 4 comments
Open

[BUG]: 在Linux下 NCW 模式下无法输入中文问题。 #363

ravenq opened this issue Jan 10, 2024 · 4 comments

Comments

@ravenq
Copy link

ravenq commented Jan 10, 2024

Describe the bug 【Bug描述】

...
在Linux下 NCW 模式下无法输入中文问题。

To Reproduce 【复现步骤】

在Linux下 NCW 模式下无法输入中文,原因是开启了多线程消息循环 multi-thread-message-loop(看了很多issue 感觉是CEF 消息循环没有输入法环境的问题,但是这个这个问题在CEF社区很多年了一直没解决)

但是经测试,不使用多线程消息循环 + QT Application::exec() 消息循环,则无法显示页面,如下:

image

如果,不使用多线程消息循环 + CEF 自身的消息循环CefRunMessageLoop() 则页面可以渲染,但是QT 相关的都行都不渲染了。甚至关闭按钮都失效了(感觉像CEF消息循环没有投递到QT环境?)
注意:下图左边是QT渲染部分

image

Expected behavior 【正确的预期行为】

...

Screenshots 【截图】

...

Environment 【BUG产生的环境】

  • OSR/NCW Mode: NCW
  • OS & Version: [e.g. Windows/macOS/Linux] Linux 统信UOS专业版
  • Qt Version: qt5.11.3
  • CEF Version: 102 113 120 119

Additional context 【更多额外信息】

搜狗输入法和统信自带的输入法效果都一样,当前没有ubutun资源,改天我试试ubuntu下会如何

...

@ravenq ravenq changed the title [BUG]: [BUG]: 在Linux下 NCW 模式下无法输入中文问题。 Jan 10, 2024
@ravenq
Copy link
Author

ravenq commented Jan 10, 2024

@ravenq
Copy link
Author

ravenq commented Jan 22, 2024

用 external_message_loop 模式能解决这个问题

@tishion
Copy link
Member

tishion commented May 16, 2024

用 external_message_loop 模式能解决这个问题

@L-Super 可以尝试改变一下线程模式,目前只有macOS使用了external_message_loop模型。
我有空也尝试改造一下

@L-Super
Copy link
Member

L-Super commented May 16, 2024

用 external_message_loop 模式能解决这个问题

@L-Super 可以尝试改变一下线程模式,目前只有macOS使用了external_message_loop模型。
我有空也尝试改造一下

OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants