qt qwebview inspect 调试
程序员文章站
2024-01-20 21:25:16
...
QWebSettings *settings = ui->webView->settings();
settings->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
QWebInspector *inspector = new QWebInspector(this);
inspector->setWindowFlags(Qt::WindowStaysOnTopHint | Qt::Dialog);
inspector->setMinimumSize(800, 800);
inspector->setPage(ui->webView->page());
inspector->show();
上一篇: JQ实现网页验证码
下一篇: Qt和html互相传递数据