关于qt5.15+最新版qcefview无法js调用c++方法 #537
Unanswered
cfheducn-debug
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
大佬您好,我按照您的官方说明文档进行qcefview的嵌入,最后不知道什么原因,发现window.CallBridge.invokeMethod(name, ...arg);devtools直接报错说没有,我又试了一下window.CallBridge.invoke(name, ...arg);devtools不报错,但是c++方法没有反应;我又试了一下var query = {
request: "Test",
onSuccess: function (response) {
alert("Success: " + response);
},
onFailure: function (error_code, error_message) {
alert(
"Failure: " + error_message + " (Error Code: " + error_code + ")"
);
},
};
window.cefViewQuery(query);,c++还是没有反应,弹出窗显示成功,但是response为空,希望大佬解答一下,万分感谢!
Beta Was this translation helpful? Give feedback.
All reactions