oufengfang
oufengfang
我也碰到这个问题,有初步的怀疑原因吗?
是没实现,实现这个接口就好了:/// /// Implement this interface to handle printing on Linux. Each browser will have /// only one print job in progress at a time. The methods of this class will...
这个问题的原因是输入法正常情况有一个预先上屏功能,但是某些输入法没有提供,所以有这个问题,可以尝试虚拟上屏,就是把上次输入的内容作为预上屏内容发给浏览器,效果很好,代码如下; ```cpp void QCefViewPrivate::onViewInputMethodEvent(QInputMethodEvent* event) { if (isOSRModeEnabled_) { // OSR mode if (!pCefBrowser_) return; auto composingText = event->preeditString(); auto composedText = event->commitString(); if (!composedText.isEmpty()) { CefCompositionUnderline underline; underline.background_color =...
好,原因就是cef浏览器在离屏渲染模式下依赖输入法的预先上屏功能来定位光标的位置;而搜狗输入法没有提供该功能,导致问题产生;而自带demo不是离屏渲染模式下所以没问题。
好,我提交试试哈