Skip to content

QtWebEngine

Discussions and questions on QtWebEngine
1.3k Topics 3.8k Posts
  • Qt6.5 QWebEngineView html script

    Unsolved
    7
    0 Votes
    7 Posts
    741 Views
    J

    hello i have je same problem
    my code
    main.cpp

    #include <QApplication> #include <QWebEngineView> int main(int argc, char *argv[]) { QApplication app(argc, argv); // Créer une instance de QWebEngineView QWebEngineView webView; // Charger la page HTML locale contenant la carte Leaflet webView.setUrl(QUrl::fromLocalFile("/leaflet_map.html")); // Replace with the path of your HTML file // Afficher la fenêtre webView.resize(800, 600); webView.show(); return app.exec(); }

    leaflet_map.html

    <!DOCTYPE html> <html> <head> <title>Carte Leaflet</title> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" /> <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script> <style> #map { height: 100%; } html, body { height: 100%; margin: 0; } </style> </head> <body> <div id="map"></div> <script> var map = L.map('map').setView([43.6108, 3.8767], 13); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors' }).addTo(map); </script> </body> </html>

    I use Qt6.8.1 with the MSVC2022_64bit kit
    I tested the html here https://html.onlineviewer.net/ and it works correctly.

  • 0 Votes
    3 Posts
    397 Views
    J

    @ZhangL , what additional libraries did you install? i ran into same error
    thanks!

  • widevine is not work

    Unsolved
    13
    0 Votes
    13 Posts
    198 Views
    jsulmJ

    @cobook Then call configure with --help parameter to see how the verbose parameter is called now.

  • QtWebEngineProcess.exe not found.

    Unsolved
    7
    0 Votes
    7 Posts
    130 Views
    JonBJ

    @CDQT said in QtWebEngineProcess.exe not found.:

    yes. files exists. checked the environment with cmd command "echo %QTWEBENGINEPROCESS_PATH%"

    That does not tell us whether a file exists, it just shows the value of an environment variable. Something like dir %QTWEBENGINEPROCESS_PATH% would be better than echo.

    The error when you run QtWebEngineProcess from the command line was to be expected, I was just trying to find out whether it would be found and run.

    Have you checked whether QTWEBENGINEPROCESS_PATH is recognised/handled in a Qt version as old as 5.9? I don't know. Maybe find what doc page https://doc.qt.io/qt-5/qtwebengine-deploying.html#deploying-qt-webengine-processes read at 5.9? You might also try Googling QtWebEngineProcess.exe not found and look through the various hits to see whether any of them might be applicable to your situation.

  • Using Spotify Web SDK in Qt6

    Solved
    5
    0 Votes
    5 Posts
    237 Views
    C

    I changed the OS to ubuntu and solved this problem. But still have a problem to play DRM contents in QtWebEngine. I'll make new issue

  • PyQt6 Setting and restoring the cache and cookies

    Solved
    2
    0 Votes
    2 Posts
    632 Views
    1

    Updating the code to create the QWebEngineView to the following fixed the issue.

    ################### def _generateWebEngineVew(self, parent = None) -> QWebEngineView: webEngine: QWebEngineView = QWebEngineView(parent=parent) profile: QWebEngineProfile = self._getProfile() webPage: QWebEnginePage = QWebEnginePage(profile, webEngine) webEngine.setPage(webPage) return webEngine
  • Javascript Support QtWebEngine in Autodesk Maya 2025

    Unsolved
    2
    0 Votes
    2 Posts
    100 Views
    R

    UPDATE: After blowing up Maya 2025 by doing a pip update on mayapy for Pyside6 and all of it's subcomponents (don't do that), I communicated with the X_ITE developers. They were able to release a version of X_ITE for me that removed the ECMAScript 2023 functions, and now uses javascript that is compatible with Chrome 108 and the version of PySide6/Qt6 compatible with QWebEngine in Maya 2025.

  • 0 Votes
    1 Posts
    97 Views
    No one has replied
  • QT webengine build error.

    Unsolved
    4
    0 Votes
    4 Posts
    144 Views
    jsulmJ

    @Ferdinand-Castelino In the screen shots you show libraries, not packages.
    How to add dev package depends on how you created the sysroot and what Linux distribution is running on your device. On Ubuntu this package is named "libnss3-dev". Dev packages contain header files and what else is needed to build software which uses a library, it is not enough to install the library itself.

  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    33 Views
    No one has replied
  • 0 Votes
    1 Posts
    163 Views
    No one has replied
  • 0 Votes
    2 Posts
    93 Views
    JonBJ

    @Chakra2811
    Since this is a PyQt question, if you do not get an answer here you could try asking the PyQt folks over at https://riverbankcomputing.com/mailman/listinfo/pyqt

  • The configuration script cannot find Windows SDK

    Unsolved
    3
    0 Votes
    3 Posts
    115 Views
    E

    I did follow the instructions to set up my environment correctly.
    And here's the output of the configuration script:

    + H:\Qt\6.8.1\Src/qtbase/configure.bat -top-level -qt-libpng -qt-libjpeg -cmake-generator Ninja -openssl-linked -platform win32-clang-msvc -- -DOPENSSL_ROOT_DIR=H:/Qt/Tools/OpenSSLv3/Win_x64 -DLLVM_INSTALL_DIR=D:/LLVM-Clang MSVC/clang+llvm-18.1.8-x86_64-pc-windows-msvc/ -Wno-dev -- Windows 10 SDK version: Overriding option 'libpng' with 'qt' (was: 'undefined') Overriding option 'libjpeg' with 'qt' (was: 'undefined') 'C:/Program Files/CMake/bin/cmake.exe' '-DOPENSSL_ROOT_DIR=H:/Qt/Tools/OpenSSLv3/Win_x64' '-DLLVM_INSTALL_DIR=D:/LLVM-Clang MSVC/clang+llvm-18.1.8-x86_64-pc-windows-msvc/' '-Wno-dev' '-DQT_INTERNAL_CALLED_FROM_CONFIGURE:BOOL=TRUE' '-DQT_QMAKE_TARGET_MKSPEC=win32-clang-msvc' '-DCMAKE_C_COMPILER=clang-cl' '-DCMAKE_CXX_COMPILER=clang-cl' '-DINPUT_libpng=qt' '-DINPUT_libjpeg=qt' '-DINPUT_openssl=linked' '-G' 'Ninja' 'H:/Qt/6.8.1/Src' -- Checking dependencies of submodule 'qtbase' -- Checking dependencies of submodule 'qtimageformats' -- Checking dependencies of submodule 'qtlanguageserver' -- Checking dependencies of submodule 'qtshadertools' -- Checking dependencies of submodule 'qtsvg' -- Checking dependencies of submodule 'qtdeclarative' -- Checking dependencies of submodule 'qtquicktimeline' -- Checking dependencies of submodule 'qtquick3d' -- Checking dependencies of submodule 'qtmultimedia' -- Checking dependencies of submodule 'qt3d' -- Checking dependencies of submodule 'qt5compat' -- Checking dependencies of submodule 'qtactiveqt' -- Checking dependencies of submodule 'qtcharts' -- Checking dependencies of submodule 'qtcoap' -- Checking dependencies of submodule 'qtconnectivity' -- Checking dependencies of submodule 'qtdatavis3d' -- Checking dependencies of submodule 'qtgraphs' -- Checking dependencies of submodule 'qtwebsockets' -- Checking dependencies of submodule 'qthttpserver' -- Checking dependencies of submodule 'qtserialport' -- Checking dependencies of submodule 'qtpositioning' -- Checking dependencies of submodule 'qtlocation' -- Checking dependencies of submodule 'qttools' -- Checking dependencies of submodule 'qtwebchannel' -- Checking dependencies of submodule 'qtwebengine' -- Checking dependencies of submodule 'qtdoc' -- Checking dependencies of submodule 'qtgrpc' -- Checking dependencies of submodule 'qtlottie' -- Checking dependencies of submodule 'qtmqtt' -- Checking dependencies of submodule 'qtnetworkauth' -- Checking dependencies of submodule 'qtopcua' -- Checking dependencies of submodule 'qtquick3dphysics' -- Checking dependencies of submodule 'qtquickeffectmaker' -- Checking dependencies of submodule 'qtremoteobjects' -- Checking dependencies of submodule 'qtscxml' -- Checking dependencies of submodule 'qtsensors' -- Checking dependencies of submodule 'qtserialbus' -- Checking dependencies of submodule 'qtspeech' -- Checking dependencies of submodule 'qttranslations' -- Checking dependencies of submodule 'qtvirtualkeyboard' -- Checking dependencies of submodule 'qtwayland' -- Checking dependencies of submodule 'qtwebview' -- Configuring submodule 'qtbase' -- [QtBase] CMAKE_BUILD_TYPE was already explicitly set to: 'Release' [QtBase] 'qtwebengine_build' was changed from OFF to ON [QtBase] 'qtwebengine_core_build' was changed from OFF to ON [QtBase] 'qtwebengine_widgets_build' was changed from OFF to ON [QtBase] 'qtwebengine_quick_build' was changed from OFF to ON CMake Warning at qtbase/cmake/QtFeature.cmake:896 (message): Due to detected feature set changes, dependent features will be re-computed automatically. This might cause a lot of files to be rebuilt. To disable this behavior, configure with -DQT_NO_FEATURE_AUTO_RESET=ON Call Stack (most recent call first): qtbase/cmake/QtBuildHelpers.cmake:472 (qt_internal_detect_dirty_features) qtbase/cmake/QtBuild.cmake:4 (qt_internal_setup_build_and_global_variables) qtbase/cmake/QtSetup.cmake:6 (include) qtbase/cmake/QtBuildRepoHelpers.cmake:21 (include) qtbase/cmake/QtBuildRepoHelpers.cmake:232 (qt_build_internals_set_up_private_api) qtbase/cmake/QtBaseHelpers.cmake:154 (qt_build_repo_begin) qtbase/CMakeLists.txt:32 (qt_internal_qtbase_build_repo) -- Configuring submodule 'qtimageformats' -- Configuring submodule 'qtlanguageserver' -- Configuring submodule 'qtshadertools' -- Configuring submodule 'qtsvg' -- Configuring submodule 'qtdeclarative' -- Configuring submodule 'qtquicktimeline' -- Configuring submodule 'qtquick3d' -- Configuring submodule 'qtmultimedia' -- Configuring submodule 'qt3d' -- Configuring submodule 'qt5compat' -- Configuring submodule 'qtactiveqt' -- Configuring submodule 'qtcharts' -- Configuring submodule 'qtcoap' -- Configuring submodule 'qtconnectivity' -- Configuring submodule 'qtdatavis3d' -- Configuring submodule 'qtgraphs' -- Configuring submodule 'qtwebsockets' -- Configuring submodule 'qthttpserver' -- Configuring submodule 'qtserialport' -- Configuring submodule 'qtpositioning' -- Configuring submodule 'qtlocation' -- Configuring submodule 'qttools' -- Configuring submodule 'qtwebchannel' -- Configuring submodule 'qtwebengine' [QtWebEngine] -- Windows 10 SDK version: [QtWebEngine] -- Support check for QtWebEngine failed: Build requires Windows 11 SDK at least version 10.0.22621.0 CMake Error at qtwebengine/cmake/Functions.cmake:967 (get_filename_component): get_filename_component called with incorrect number of arguments Call Stack (most recent call first): qtwebengine/src/pdf/CMakeLists.txt:112 (append_compiler_linker_sdk_setup) -- Configuring incomplete, errors occurred! CMake Error at H:/Qt/6.8.1/Src/qtbase/cmake/QtProcessConfigureArgs.cmake:1139 (message): CMake exited with code 1. CMake Error at H:/Qt/6.8.1/Src/cmake/QtIRProcessHelpers.cmake:173 (message): H:\Qt\6.8.1\Src/qtbase/configure.bat -top-level -qt-libpng -qt-libjpeg -cmake-generator Ninja -openssl-linked -platform win32-clang-msvc -- -DOPENSSL_ROOT_DIR=H:/Qt/Tools/OpenSSLv3/Win_x64 -DLLVM_INSTALL_DIR=D:/LLVM-Clang MSVC/clang+llvm-18.1.8-x86_64-pc-windows-msvc/ -Wno-dev exited with status: 1 Call Stack (most recent call first): H:/Qt/6.8.1/Src/cmake/QtTopLevelHelpers.cmake:35 (qt_ir_execute_process_and_log_and_handle_error) H:/Qt/6.8.1/Src/cmake/QtTopLevelHelpers.cmake:57 (qt_tl_run_toplevel_configure) H:/Qt/6.8.1/Src/cmake/QtTopLevelConfigureScript.cmake:17 (qt_tl_run_main_script)
  • 0 Votes
    34 Posts
    58k Views
    osirisgothraO

    still think the components that are used in examples should be included by default or at least if nothing else warned that you wont be able to do some examples unless you have them (in the right places mind you, not tucked away in some weird documentation). It would also be nice if there is gonna be typing completion in qmake, cmake, etc., that it actually be contextual to the syntax of those items and not just spit out seemingly random tags most of which don't have anything to do with said files... even better, maybe include at least the headers that way you know for sure you are missing the library instead of ghostin' the whole kit'n'kaboodle.

  • 0 Votes
    6 Posts
    248 Views
    jsulmJ

    @therealmatiss Qt 6.8 does not support Ubuntu 18.04 (see https://doc.qt.io/qt-6/linux.html). Use an older Qt version which supports this Ubuntu version (which does not get any support anymore by the way).

  • MSVC 17.12 Compilation error

    Solved
    4
    0 Votes
    4 Posts
    171 Views
    B

    Thanks. Created one https://bugreports.qt.io/browse/QTWB-77

  • 0 Votes
    9 Posts
    672 Views
    F

    thx for your reply

  • 0 Votes
    2 Posts
    148 Views
    Christian EhrlicherC

    First upgrade to a recent version. If the error still persists, create a minimal, compilable example. And if it then still exists it might be a bug in Qt not yet fixed.

  • 0 Votes
    3 Posts
    207 Views
    R

    @gfxx The OS is Windows 11 22H2

  • CMake failed to load QWebWidgets module

    Unsolved
    17
    0 Votes
    17 Posts
    3k Views
    K

    @Haowei-Hsu you saved my day ^^. Thank you. Qt Positioning really fix this issue on my Qt 6.8