Skip to content

QtWebEngine

Discussions and questions on QtWebEngine
1.3k Topics 4.0k Posts
  • This topic is deleted!

    Unsolved
    4
    0 Votes
    4 Posts
    87 Views
  • QWebEnginePage es6 modules

    Solved
    2
    0 Votes
    2 Posts
    660 Views
    S
    I figured out a solution. Instead of loading files using the file:/// protocol, I used a custom scheme. I then used QWebEngineUrlSchemeHandler:requestStarted to open the files and attach them to QWebEngineUrlRequestJob. void UrlSchemeHandler::requestStarted(QWebEngineUrlRequestJob* request) { QByteArray requestMethod = request->requestMethod(); QUrl requestUrl = request->requestUrl(); QString requestPath = requestUrl.path(); QFile* file = new QFile(requestPath); file->setParent(request); Z_VERIFY(connect(request, &QObject::destroyed, file, &QFile::deleteLater)); if (!file->exists() || file->size() == 0) { request->fail(QWebEngineUrlRequestJob::UrlNotFound); return; } QFileInfo fileInfo = QFileInfo(*file); QMimeDatabase mimeDatabase; QMimeType mimeType = mimeDatabase.mimeTypeForFile(fileInfo); request->reply(QUrl(mimeType.name()).toEncoded(), file); }
  • 0 Votes
    4 Posts
    1k Views
    C
    anyone have idea?
  • QWebEngineCallback? &resultCallback? How does it work?

    Solved callback qwebengine tohtml
    3
    0 Votes
    3 Posts
    1k Views
    D
    @JonB Thank you so much! I see this is different than I thought. Works good!
  • Build QtWebEngine with Python3.

    Unsolved
    2
    0 Votes
    2 Posts
    455 Views
    jsulmJ
    @jiapei1000 Please post the actual error - it should be somewhere above of what you posted.
  • How to use copy and paste in QWebEngineView

    Unsolved
    2
    0 Votes
    2 Posts
    555 Views
    H
    I have the same problem, but in PyQt 5. Ended up using an alternative solution with an external "keyboard" library that mimics keyboard presses: if self.page().contextMenuData().isContentEditable() == True: #check if an input field was right-clicked self.menus = QMenu() action1 = QAction("Paste text", self) self.menus.addAction(action1) self.menus.popup(event.globalPos()) action1.triggered.connect(self.paste_into_field) def paste_into_field(self): keyboard.press_and_release("ctrl+v")
  • QWebEngineView with proxy on linux

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    S
    我也遇到了相同的问题 I had the same problem
  • 0 Votes
    8 Posts
    2k Views
    JKSHJ
    @RicTa said in WebEngine Nanobrowser not able to pass Antibot Validation: indeed in the meantime I have open this bug here: https://bugreports.qt.io/browse/QTBUG-107451 please let me know in case I made some mistakes in creating it. thanks a lot for you support Thanks! Your bug report looks fine to me, and I see that you are having a productive discussion with an engineer who is working on Qt WebEngine.
  • Use lazy loading in QWebEngine

    Unsolved
    1
    0 Votes
    1 Posts
    338 Views
    No one has replied
  • Qt 6.4 web inspector

    Solved
    4
    0 Votes
    4 Posts
    1k Views
    S
    Bug has been logged. https://bugreports.qt.io/browse/QTBUG-107502
  • QWebEngineView blocking main GUI thread when page has a GIF

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    nodeepshitN
    did you guys resolve this problem now? I encountered this problem on Qt 5.15.2, when I use following setting: QCoreApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
  • QWebEngineView->render() throws nullptr exception

    Unsolved
    1
    0 Votes
    1 Posts
    307 Views
    No one has replied
  • Error building Webengine 5.15 with Qt5.15.2 on mac M1

    Unsolved
    6
    0 Votes
    6 Posts
    1k Views
    S
    Yes, you are trying to link libraries built from different architectures. Those OSX flags were my attempt to see if they would stop building ARM. But it seems that they are still trying to build ARM and link to x86_64.
  • Qt webengineview Web page requestfullscreen invalid

    Unsolved
    2
    0 Votes
    2 Posts
    437 Views
    S
    Did you take a look at this example videoplayer? It appears the widget has to listen to the QWebEnginePage::fullScreenRequested signal.
  • How to save QWebengine log

    Unsolved
    3
    0 Votes
    3 Posts
    501 Views
    nodeepshitN
    @nodeepshit said in How to save QWebengine log: I modified the parameters as below, the log did't appear either. Is there any sample project to demonstrate how to achieve this. #include "TestQWebEngineView.h" #include <QtWidgets/QApplication> int main(int argc, char *argv[]) { std::vector<char*> new_argv(argv, argv + argc); new_argv.push_back(const_cast<char*>("--disable-web-security")); new_argv.push_back(const_cast<char*>("--enable-precise-memory-info")); new_argv.push_back(const_cast<char*>("--enable-logging")); new_argv.push_back(const_cast<char*>("--log-level=0")); argc = argc + 4; qputenv("QTWEBENGINE_REMOTE_DEBUGGING", "7777"); argv = new_argv.data(); QApplication a(argc, argv); TestQWebEngineView w; w.show(); return a.exec(); }
  • Qt Webengine Crash and shows white screen

    Unsolved
    2
    0 Votes
    2 Posts
    795 Views
    nodeepshitN
    Can you enable QWebengine log and see what's hapening when white screen occurs.
  • Take screenshots of PDF

    Unsolved
    2
    0 Votes
    2 Posts
    396 Views
    Jaime02J
    Since I guess this is impossible, I will convert the PDF to a image using pdf2image and work with images
  • 0 Votes
    1 Posts
    254 Views
    No one has replied
  • Inject script on all subframes with callback

    Unsolved
    1
    0 Votes
    1 Posts
    377 Views
    No one has replied
  • Pdf viewer MinGW

    Unsolved
    4
    0 Votes
    4 Posts
    811 Views
    M
    There's the MSVC version of Qt according to an answer on this thread: https://forum.qt.io/topic/139011/how-do-i-install-qt-web-engine-for-qt-6-3-1/4