Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Unknown module(s) in QT: webenginewidgets
Forum Updated to NodeBB v4.3 + New Features

Unknown module(s) in QT: webenginewidgets

Scheduled Pinned Locked Moved Unsolved General and Desktop
33 Posts 9 Posters 2.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JacobNovitsky
    wrote on last edited by JacobNovitsky
    #19

    All modules installed, version of module is the same as Qt -> 6.9.2
    getting error when trying to build below:

    :-1: error: Project ERROR: Unknown module(s) in QT: webchannel positioning

    TEMPLATE = app
    TARGET = webengine_test
    QT += core gui widgets webenginewidgets   # <-- webenginewidgets is required
    
    CONFIG += c++17
    
    SOURCES += main.cpp
    
    #include <QApplication>
    #include <QWebEngineView>
    
    int main(int argc, char *argv[])
    {
        QApplication app(argc, argv);
    
        QWebEngineView view;
        view.resize(800, 600);
        view.load(QUrl("https://www.qt.io")); // any test URL
        view.show();
    
        return app.exec();
    }
    
    SGaistS 1 Reply Last reply
    1
    • hskoglundH Offline
      hskoglundH Offline
      hskoglund
      wrote on last edited by
      #20

      Screenshot from 2025-09-20 06-46-18.png

      1 Reply Last reply
      1
      • J JacobNovitsky

        All modules installed, version of module is the same as Qt -> 6.9.2
        getting error when trying to build below:

        :-1: error: Project ERROR: Unknown module(s) in QT: webchannel positioning

        TEMPLATE = app
        TARGET = webengine_test
        QT += core gui widgets webenginewidgets   # <-- webenginewidgets is required
        
        CONFIG += c++17
        
        SOURCES += main.cpp
        
        #include <QApplication>
        #include <QWebEngineView>
        
        int main(int argc, char *argv[])
        {
            QApplication app(argc, argv);
        
            QWebEngineView view;
            view.resize(800, 600);
            view.load(QUrl("https://www.qt.io")); // any test URL
            view.show();
        
            return app.exec();
        }
        
        SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #21

        @JacobNovitsky when you say all modules installed:

        • from the same source ?
        • are you using the Qt version with all the modules installed to build your application ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • enjoysmathE Offline
          enjoysmathE Offline
          enjoysmath
          wrote last edited by enjoysmath
          #22

          Yo yo. I'm having this exact same issue. Both with 6.8 and 6.5.3. I'm guessing same thing willl happen with 6.10 if I were to try it out... Can't install and use webenginewidgets. I just need a single browser window for rendering KaTeX and taking snapshots of it... Anyone know of a quickfix?

          Windows 10, 64bit.
          I only use Widgets-side for desktop apps.

          Same dealio with webchannel. All installed!

          https://github.com/enjoysmath
          https://math.stackexchange.com/users/26327/exercisingmathematician

          B 1 Reply Last reply
          0
          • J JacobNovitsky

            How to fix below?
            :-1: error: Unknown module(s) in QT: webenginewidgets

            
            
            TEMPLATE = app
            TARGET = QtGcppBrowser
            
            # Enable C++17 in qmake
            CONFIG += c++17
            
            # Required Qt modules
            QT += widgets webenginewidgets
            
            SOURCES += main.cpp
            
            # If building with very old qmake that lacks 'c++17', uncomment:
            # CONFIG -= c++17
            # CONFIG += c++1z
            
            #include <QApplication>
            #include <QWebEngineView>
            #include <QUrl>
            
            int main(int argc, char* argv[]) {
                QCoreApplication::setOrganizationName("QtExamples");
                QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
                QApplication app(argc, argv);
            
                QWebEngineView view;
                const QUrl start = QUrl::fromUserInput(argc > 1 ? argv[22] : "https://www.qt.io");
                view.setUrl(start);
                view.resize(1024, 750);
                view.show();
                return app.exec();
            }
            
            enjoysmathE Offline
            enjoysmathE Offline
            enjoysmath
            wrote last edited by
            #23

            @JacobNovitsky Were you able to fix this? Having same issue independent of you building yours from source, since mines just the standard community installer on Windows 10!

            https://github.com/enjoysmath
            https://math.stackexchange.com/users/26327/exercisingmathematician

            1 Reply Last reply
            0
            • enjoysmathE enjoysmath

              Yo yo. I'm having this exact same issue. Both with 6.8 and 6.5.3. I'm guessing same thing willl happen with 6.10 if I were to try it out... Can't install and use webenginewidgets. I just need a single browser window for rendering KaTeX and taking snapshots of it... Anyone know of a quickfix?

              Windows 10, 64bit.
              I only use Widgets-side for desktop apps.

              Same dealio with webchannel. All installed!

              B Offline
              B Offline
              Bonnie
              wrote last edited by Bonnie
              #24

              @enjoysmath Are you using Qt kit of MinGW? Webengine doesn't support MinGW, you must using MSVC kits.
              (Refering to: https://doc.qt.io/qt-6/qtwebengine-platform-notes.html#windows)

              Note: Currently, Qt WebEngine does not compile with MinGW.

              Qt Webengine module won't be installed on MinGW kit even you have it checked in the installer.

              You also need to install Qt Webchannel and Qt positioning in Additional Libraries.
              (Refering to: https://doc.qt.io/qt-6/qtwebengine-index.html)

              Note: By default, Qt WebEngine depends on the Qt Positioning and Qt WebChannel optional modules, but can be built without them. Be sure to install these add-ons when using the online installer.

              With all these installed rightly (by online installer), I can use webenginewidgets with Qt 6.8.3 on Windows 10.

              1 Reply Last reply
              2
              • enjoysmathE Offline
                enjoysmathE Offline
                enjoysmath
                wrote last edited by enjoysmath
                #25

                @Bonnie

                I use the installer gotten to via Qt Creator 18.0.0 > Tools > Qt Maintenance Tool > Start Maintenance Tool.

                I have Qt WebEngineWidgets/Channels/Positioning installed now across the board. Do I need to include qt positining in the Qt += line of the .pro?

                And yes, always trying MSVC first. So now I know now to even try out MinGW option...

                https://github.com/enjoysmath
                https://math.stackexchange.com/users/26327/exercisingmathematician

                1 Reply Last reply
                0
                • enjoysmathE Offline
                  enjoysmathE Offline
                  enjoysmath
                  wrote last edited by
                  #26

                  image.png

                  https://github.com/enjoysmath
                  https://math.stackexchange.com/users/26327/exercisingmathematician

                  B 1 Reply Last reply
                  0
                  • enjoysmathE Offline
                    enjoysmathE Offline
                    enjoysmath
                    wrote last edited by
                    #27

                    Qt tools for visual studio made module selection easy, but I can't use it because another plugin is causing trouble during build.

                    https://github.com/enjoysmath
                    https://math.stackexchange.com/users/26327/exercisingmathematician

                    1 Reply Last reply
                    0
                    • enjoysmathE enjoysmath

                      image.png

                      B Offline
                      B Offline
                      Bonnie
                      wrote last edited by
                      #28

                      @enjoysmath This looks like you don't have these module installed.
                      Are you sure you are using the right kit that these modules are installed?
                      How about show me a screenshot of the components list from the maintainance tool?
                      And is there any chance you have multiple kits installed and you are using the wrong one?

                      @enjoysmath said in Unknown module(s) in QT: webenginewidgets:

                      Do I need to include qt positining in the Qt += line of the .pro?

                      No you don't need to.

                      1 Reply Last reply
                      1
                      • enjoysmathE Offline
                        enjoysmathE Offline
                        enjoysmath
                        wrote last edited by
                        #29

                        I've tried all the kits, but now gonna try 6.10

                        https://github.com/enjoysmath
                        https://math.stackexchange.com/users/26327/exercisingmathematician

                        1 Reply Last reply
                        0
                        • enjoysmathE Offline
                          enjoysmathE Offline
                          enjoysmath
                          wrote last edited by
                          #30

                          image.png

                          https://github.com/enjoysmath
                          https://math.stackexchange.com/users/26327/exercisingmathematician

                          1 Reply Last reply
                          0
                          • enjoysmathE Offline
                            enjoysmathE Offline
                            enjoysmath
                            wrote last edited by
                            #31

                            Okay, I seem to have gotten past it using 6.10.

                            https://github.com/enjoysmath
                            https://math.stackexchange.com/users/26327/exercisingmathematician

                            B 1 Reply Last reply
                            0
                            • enjoysmathE enjoysmath

                              Okay, I seem to have gotten past it using 6.10.

                              B Offline
                              B Offline
                              Bonnie
                              wrote last edited by
                              #32

                              @enjoysmath That's nice! But the version really shouldn't matter :)

                              enjoysmathE 1 Reply Last reply
                              1
                              • B Bonnie

                                @enjoysmath That's nice! But the version really shouldn't matter :)

                                enjoysmathE Offline
                                enjoysmathE Offline
                                enjoysmath
                                wrote last edited by
                                #33

                                @Bonnie

                                Apparently it only works for 6.10 for me. Followed the same procedure for each version.

                                https://github.com/enjoysmath
                                https://math.stackexchange.com/users/26327/exercisingmathematician

                                1 Reply Last reply
                                0

                                • Login

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Users
                                • Groups
                                • Search
                                • Get Qt Extensions
                                • Unsolved