Skip to content

QtWebEngine

Discussions and questions on QtWebEngine
1.3k Topics 3.9k Posts
QtWS25 Last Chance
  • How to stream live content from YouTube using QWebEngineView

    Solved
    9
    0 Votes
    9 Posts
    6k Views
    AutomataA
    Your code works seamlessly for normal YouTube videos. Live video streams still have the flicker effect. Thanks for your time
  • Incorrect XML reported when running in WebEngineView, works fine in IE, Chrome

    Unsolved
    1
    0 Votes
    1 Posts
    401 Views
    No one has replied
  • QWebEngineView filter content before rendering?

    Unsolved
    1
    0 Votes
    1 Posts
    561 Views
    No one has replied
  • Back navigation ("Backspace") bloked, but I can back to "about:blank" url.

    Unsolved
    1
    0 Votes
    1 Posts
    590 Views
    No one has replied
  • QWebpage tohtml() get the wrong html

    Unsolved
    4
    0 Votes
    4 Posts
    3k Views
    tkksT
    @raven-worx file :ca.h #ifndef CA_H #define CA_H #include <QObject> #include <string> #include <QtWebEngineWidgets/qwebengineview.h> #include <QtWebEngineWidgets/qwebenginesettings.h> class CA:public QObject { Q_OBJECT public: CA(); void spider(const std::string& str); public slots: void finish(bool is_ok); private: QWebEngineView *view ; }; #endif // CA_H file:ca.cpp #include "ca.h" #include <QString> CA::CA() { view = nullptr; } void CA::spider(const std::string& str) { qDebug("spider"); if(view == nullptr) { qDebug("new QWebEngineView"); view = new QWebEngineView; view->setUrl(QUrl(QString::fromStdString(str))); QObject::connect( view , &QWebEngineView::loadFinished , this , &CA::finish ); QWebEngineSettings *setting = view->page()->settings(); setting->setAttribute( QWebEngineSettings::AutoLoadImages , false ); view->resize(1024, 750); } else { view->setUrl(QUrl(QString(str.c_str()))); } //view->show(); } void CA::finish(bool is_ok) { if(is_ok) { qDebug("load successed!"); view->page()->toHtml( [](const QString &str )mutable -> void { QString html = str ; qDebug()<<html; } ); } else { qDebug("load error!"); } } file main.cpp #include <QCoreApplication> #include <QApplication> #include "ca.h" using namespace std; int main(int argc, char *argv[]) { QApplication a(argc, argv); CA ca; ca.spider("https://dangdang.tmall.com/search.htm?search=y&orderType=newOn_desc&pageNo=88"); return a.exec(); } when the slots funcion nothing happened just cout load successed!
  • 0 Votes
    2 Posts
    2k Views
    A
    The solution was simple, i was inattentive, but Web Engine Team helps me, thanks guys webView.onNavigationRequested: { if(request.navigationType === WebEngineView.BackForwardNavigation) { print("onNavigationRequested", request.url) request.action = WebEngineView.IgnoreRequest; } }
  • Prevent QWebEngineView from taking the focus?

    Unsolved
    3
    1 Votes
    3 Posts
    2k Views
    A
    Thanks for the pointer, @Andriy, although I must confess that I have given up on Qt WebEngine. No matter what the Qt guys may say, it's not, in my opinion, ready to replace Qt WebKit, as confirmed by QTBUG-52999 indeed (this won't be fixed before 5.8!), as well as the fact that they still ship the source code for Qt WebKit (and, from what I have seen, correct a few things here and there in Qt WebKit) and that the help in Qt Creator (which I understand now uses Qt WebEngine) doesn't render well anymore, etc.
  • WebKit and WebEngine not found in Qt 5.7

    Solved qtwebkit qt5.7 installation a
    11
    0 Votes
    11 Posts
    11k Views
    FaridsarlF
    Ok. Thanks for all.
  • Fail to build WEBENGINE

    Unsolved
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Library not loaded: @rpath/QtWebEngineCore.framework

    Solved
    2
    0 Votes
    2 Posts
    1k Views
    TavisT
    For anyone interested, I solved the problem. None of the qtwebengine projects will run outside of QtCreator unless you run macdeployqt on the package first. But in order to get macdeployqt to work you need to specify the path to the Qml root directory of your project. macdeployqt path/to/quicknanobrowser.app -qmldir=./path/to/my/quicknanobrowser/root
  • QWebEngineView behaves odd when used inside a QDockWidget

    Unsolved
    1
    0 Votes
    1 Posts
    622 Views
    No one has replied
  • QwebEnginePage - hdpi problem?

    Locked Unsolved
    2
    0 Votes
    2 Posts
    717 Views
    ?
    Duplicate of http://forum.qt.io/topic/66608
  • QWebEnginePage HiDpi Problem?

    Unsolved
    7
    0 Votes
    7 Posts
    2k Views
    C
    I report this issue to official and but them not yet solved, you can vote it. My solution is automatically zoom in webpage when the dpi is high. https://bugreports.qt.io/browse/QTBUG-53449
  • Qt 5.7beta -- where is QWebEngine?

    Unsolved
    2
    0 Votes
    2 Posts
    783 Views
    C
    That's a Known Issue, qt official will fix it in qt 5.7rc version. https://bugreports.qt.io/browse/QTBUG-52517?filter=17619
  • "eglCreatePbufferSurface failed with error "

    Solved qtwebengine egl eglfs mesa qt5.6
    2
    0 Votes
    2 Posts
    2k Views
    1732101
    Solved: the cause was the stub in mesa3d drm backend. It's solved by altering the backend.
  • 0 Votes
    1 Posts
    853 Views
    No one has replied
  • Problem with running the application with QWebEngineView.

    Unsolved qwebengineview qwebengine
    4
    0 Votes
    4 Posts
    4k Views
    A
    @Hans-Dijkema I have yet to try Qt 5.7 beta, but... it seems to me like you haven't installed QtWebEngine?...
  • Could not grab pixels with alpha channel using QWebEngine in QT5.5

    Unsolved
    1
    0 Votes
    1 Posts
    522 Views
    No one has replied
  • HTML Page Web Scraping

    Unsolved
    1
    0 Votes
    1 Posts
    850 Views
    No one has replied
  • Is there any way to get a qt web browser that can render pdf files?

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    picaschafP
    @eureka And if this doesn't work you could use something like pdf.js (https://mozilla.github.io/pdf.js/)