Skip to content

QtWebEngine

Discussions and questions on QtWebEngine
1.2k Topics 3.7k Posts
  • 0 Votes
    2 Posts
    236 Views
    E

    Do you have a solution for that problem? I need.

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • I got error when i use Webengine lib

    Unsolved
    7
    0 Votes
    7 Posts
    186 Views
    E

    I dont get errors when i use gold linker but website’s dont load , i get blank screen.

  • 0 Votes
    6 Posts
    358 Views
    SGaistS

    @delamor hi, why build for x86_64 if targeting M1 machine ? There's a translation layer that will incur a performance hit.

  • Web Engine runs out of memory when loading a node.js server.

    Unsolved
    2
    0 Votes
    2 Posts
    92 Views
    S

    hi!did you solve the problem, i met the same problem.

  • Build from source errors. QTWebengine (chromium)

    Unsolved
    5
    0 Votes
    5 Posts
    393 Views
    M

    It's not related to Debug or Release. The error is caused by line endings. The parser expects unix instead of dos line endings.

  • Terminating renderer for bad IPC message, reason 123

    Unsolved
    5
    0 Votes
    5 Posts
    171 Views
    SGaistS

    Hi,

    You can build the latest Qt 5.15 for your project and if it works better. If so backport the changes.

  • Solving Error: TLS initialization failed on PySide2

    Unsolved
    2
    0 Votes
    2 Posts
    88 Views
    SGaistS

    Hi,

    You should move to PySide6. Support for OpenSSL 3 started with Qt 6. Even if the support is back-ported to 5.15, you would need to build PySide2 yourself with the corresponding version of Qt 5.

  • Compiling QtWebEngine fails because out of memory

    Unsolved
    13
    0 Votes
    13 Posts
    2k Views
    ytexasY

    @CompSciDude
    I tried -no-webengine-jumbo-build when building Qt 6.7.2, still cannot build cause by out of memory (12 G RAM). Neither --webengine-jumbo-build=<number>

  • Linux gives error in QtWebEngineProcess

    Unsolved
    1
    0 Votes
    1 Posts
    72 Views
    No one has replied
  • No content on macOS M

    Unsolved
    2
    0 Votes
    2 Posts
    104 Views
    No one has replied
  • QWebEngineView not showing on Linux Mint

    Solved
    2
    0 Votes
    2 Posts
    138 Views
    I

    Found the problem, I'm replying if someone else got the same problem.
    I needed to put this line of code :

    os.environ["QTWEBENGINE_CHROMIUM_FLAGS"] = "--no-sandbox"

    And to use sys.argv when initializing the app :

    App = Qt.QApplication(sys.argv)

    The final code being the following :

    import PyQt5.QtWidgets as Qt from PyQt5 import QtCore import PyQt5.QtWebEngineWidgets as QtWeb import sys import os class WebView(Qt.QMainWindow): def __init__(self): super().__init__() self.setWindowTitle("Web View") self.setGeometry(100, 100, 800, 600) self.webview = QtWeb.QWebEngineView(self) self.setCentralWidget(self.webview) self.webview.load(QtCore.QUrl("https://www.google.com")) if __name__ == "__main__": os.environ["QTWEBENGINE_CHROMIUM_FLAGS"] = "--no-sandbox" App = Qt.QApplication(sys.argv) window = WebView() window.show() app.exec_()

    Hope it helps if someone gets the same issue !

  • QWebEngineView - Application Not Responding

    Unsolved
    12
    0 Votes
    12 Posts
    252 Views
    Juan DevJ

    If I keep the code posted above and if I modify my webBrowser function with this code

    void MyMainWindow::webBrowser() { // Creation Objects m_webViewer = new QWebEngineView(); // Initialisation QString urlPage = "http://factice_url/simple_page.html"; // Setting and Loading URL (HTTP Object used because subsequently need to apply headers) QWebEngineHttpRequest httpObjet; httpObjet.setUrl(urlPage); m_webViewer->load(httpObjet); // Connexions connect(m_webViewer,&QWebEngineView::loadStarted,this,&MyMainWindow::manageBeginLoading); connect(m_webViewer,&QWebEngineView::loadFinished,this,&MyMainWindow::manageEndLoading); }

    And if I add this function

    void MyMainWindow::manageBeginLoading() { // Set Central Frame setCentralWidget(m_webViewer); }

    Application works in mode Debug and in mode Release without problem.
    With this changes I move setCentralWidget(m_webViewer) into the function launched when signal loadStarted is emitted.

    But is this correct or should we deport the creation of the m_webViewer and the connections in the constructor..?

  • 0 Votes
    1 Posts
    56 Views
    No one has replied
  • Persist DevTools preferences between restarts

    Unsolved
    1
    0 Votes
    1 Posts
    86 Views
    No one has replied
  • 0 Votes
    2 Posts
    104 Views
    B

    I have already solved this problem. The solution is:

    m_view->settings()->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, true);
  • 0 Votes
    1 Posts
    167 Views
    No one has replied
  • 0 Votes
    1 Posts
    78 Views
    No one has replied
  • This topic is deleted!

    Locked Unsolved
    2
    0 Votes
    2 Posts
    14 Views
  • 0 Votes
    7 Posts
    926 Views
    Cobra91151C

    Hello!

    So, I added this patch: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/505412
    I have successfully built QtWebEngine 5.15.14 for Visual Studio 2022. Now, this issue is resolved.