diff --git a/article_inspect.cpp b/article_inspect.cpp index 046e5801e..47b57de4d 100644 --- a/article_inspect.cpp +++ b/article_inspect.cpp @@ -14,7 +14,10 @@ void ArticleInspector::setInspectPage( QWebEnginePage * page ) { this->inspectedPage = page; page->setDevToolsPage( inspectView->page() ); +#if (QT_VERSION < QT_VERSION_CHECK(6,0,0)) + //this line will crash application on qt6.2 ,see https://bugreports.qt.io/browse/QTBUG-101724 page->triggerAction( QWebEnginePage::InspectElement ); +#endif raise(); show(); } diff --git a/articlewebview.hh b/articlewebview.hh index ff0d795e8..d5a6efb03 100644 --- a/articlewebview.hh +++ b/articlewebview.hh @@ -16,8 +16,6 @@ /// to the view's current state. This is used to open links in new tabs when /// they are clicked with middle button. There's also an added possibility to /// get double-click events after the fact with the doubleClicked() signal. -/// 2. Manage our own QWebInspector instance. In order to show inspector correctly, -/// use triggerPageAction( QWebEnginePage::InspectElement ) instead. class ArticleWebView: public QWebEngineView { Q_OBJECT