简体   繁体   English

Qt QWebView,QWebengineview不起作用

[英]Qt QWebView, QWebengineview not working

I'm new to Qt and I'd like to know how I can import the "qml" for QWebView and/or QWebengineview. 我是Qt的新手,我想知道如何导入QWebView和/或QWebengineview的“ qml”。 I tried running the example but it gives me "unknown modules: qwebview" Same for Qwebengineview. 我尝试运行该示例,但它为我提供了“未知模块:qwebview”,与Qwebengineview相同。 In the QtDesigner, I don't see any of thoses. 在QtDesigner中,我看不到任何一个。 I need to include HTML in my project... Thanks all! 我需要在项目中包含HTML ...谢谢!

have you tried including them in your pro file? 您是否尝试过将它们包含在pro文件中? like this? 像这样?

QT += webengine webenginewidgets

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM