How to make QML WebView Element use Qt::openUrlExternally instead of some visual newWindowComponent?
How to make QML WebView Element use Qt::openUrlExternally instead of some visual newWindowComponent ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t think there is a simple way to do this using QML. You can do this with the standard
QWebView, but there isn’t a way to access this functionality from within QML. You would need to re-wrapQWebViewand expose more functions.An example using the standard C++ interfaces:
test.cpp
handler.hpp
handler.cpp
CMakeLists.txt