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
22 Posts 8 Posters 1.7k 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 last edited by
    #7

    webEngine.png
    How should I proceed? I have another machine with Qt installed with online installer

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote last edited by
      #8

      Hi,

      Since you already installed Qt using the online installer, go to the folder and use the Maintenance Tool to modify your installation.

      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
      • J Offline
        J Offline
        JacobNovitsky
        wrote last edited by
        #9

        it does not work
        Cannot initialize cache: Cannot obtain the lock for file "/home/j/.cache/qt-unified-linux-online/cache.lock": Resource temporarily unavailable

        jsulmJ 1 Reply Last reply
        0
        • C Offline
          C Offline
          ChrisW67
          wrote last edited by
          #10

          As @Christian-Ehrlicher pointed out: if you built your Qt instance from source, then you need to reconfigure it to include the Web Engine components, rebuild, and reinstall.
          If, as @SGaist has assumed, you installed your entire Qt from the online installer, then you need to run the Maintenance Tool, select the missing component(s), and let it install them for you.

          The error message you posted seems to indicate that you are trying to install Qt using the online installer on top of an existing self-built Qt. You cannot add a component to an existing self-built Qt using the Qt Online installer. To install a completely new Qt instance you need to install into a fresh directory.

          1 Reply Last reply
          0
          • J JacobNovitsky

            it does not work
            Cannot initialize cache: Cannot obtain the lock for file "/home/j/.cache/qt-unified-linux-online/cache.lock": Resource temporarily unavailable

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote last edited by
            #11

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

            Cannot obtain the lock for file "/home/j/.cache/qt-unified-linux-online/cache.lock": Resource temporarily unavailable

            Is Qt Online Installer still running? If so close it and try again.
            If it does not help delete that file manually.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • J Offline
              J Offline
              JacobNovitsky
              wrote last edited by JacobNovitsky
              #12

              I've removed all components with Maintenance tool, then reinstalled
              Qt and Web engine with online installer

              Trying to compile sample project:

              QT += widgets webenginewidgets
              CONFIG += c++17
              SOURCES += main.cpp
              
              #include <QApplication>
              #include <QWebEngineView>
              #include <QUrl>
              
              int main(int argc, char *argv[]) {
                  QApplication app(argc, argv);
              
                  QWebEngineView view;
                  view.resize(1200, 800);
                  view.load(QUrl(QStringLiteral("https://www.qt.io")));
                  view.show();
              
                  return app.exec();
              }
              

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

              Kindly advise!
              q.png

              jsulmJ 1 Reply Last reply
              0
              • J JacobNovitsky

                I've removed all components with Maintenance tool, then reinstalled
                Qt and Web engine with online installer

                Trying to compile sample project:

                QT += widgets webenginewidgets
                CONFIG += c++17
                SOURCES += main.cpp
                
                #include <QApplication>
                #include <QWebEngineView>
                #include <QUrl>
                
                int main(int argc, char *argv[]) {
                    QApplication app(argc, argv);
                
                    QWebEngineView view;
                    view.resize(1200, 800);
                    view.load(QUrl(QStringLiteral("https://www.qt.io")));
                    view.show();
                
                    return app.exec();
                }
                

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

                Kindly advise!
                q.png

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote last edited by
                #13

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

                webchannel positioning

                Same: did you install these two modules?

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • J Offline
                  J Offline
                  JacobNovitsky
                  wrote last edited by JacobNovitsky
                  #14

                  libqt6webchannel6/jammy,now 6.2.4-1ubuntu1 amd64 [installed,automatic]
                  libqt6webchannel6-dev/jammy,now 6.2.4-1ubuntu1 amd64 [installed,automatic]
                  1wlibqt6positioning6/jammy,now 6.2.4-1 amd64 [installed,automatic]
                  libqt6positioning6-plugins/jammy,now 6.2.4-1 amd64 [installed,automatic]
                  libqt6positioningquick6/jammy,now 6.2.4-1 amd64 [installed,automatic]
                  qt6-positioning-dev/jammy,now 6.2.4-1 amd64 [installed,automatic]

                  SGaistS 1 Reply Last reply
                  0
                  • J JacobNovitsky

                    libqt6webchannel6/jammy,now 6.2.4-1ubuntu1 amd64 [installed,automatic]
                    libqt6webchannel6-dev/jammy,now 6.2.4-1ubuntu1 amd64 [installed,automatic]
                    1wlibqt6positioning6/jammy,now 6.2.4-1 amd64 [installed,automatic]
                    libqt6positioning6-plugins/jammy,now 6.2.4-1 amd64 [installed,automatic]
                    libqt6positioningquick6/jammy,now 6.2.4-1 amd64 [installed,automatic]
                    qt6-positioning-dev/jammy,now 6.2.4-1 amd64 [installed,automatic]

                    SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote last edited by
                    #15

                    @JacobNovitsky If you are using the Qt version from the online installer, you have to add these dependencies from the online installer as well...

                    Or just use the Qt version from your distribution. However you cannot mix and match.

                    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
                    • J Offline
                      J Offline
                      JacobNovitsky
                      wrote last edited by
                      #16

                      Should I install above libraries with version 6.9.2? (as per my Qt version)

                      jsulmJ 1 Reply Last reply
                      0
                      • J JacobNovitsky

                        Should I install above libraries with version 6.9.2? (as per my Qt version)

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote last edited by
                        #17

                        @JacobNovitsky You should install these libraries for the Qt version you're using.
                        You wrote:
                        "I've removed all components with Maintenance tool, then reinstalled
                        Qt and Web engine with online installer"
                        Doesn't that mean that you now need to install these modules using Qt Maintenance Tool from that Qt installation?

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • AsifBahrainwalaA Offline
                          AsifBahrainwalaA Offline
                          AsifBahrainwala
                          wrote last edited by AsifBahrainwala
                          #18
                          This post is deleted!
                          1 Reply Last reply
                          0
                          • J Offline
                            J Offline
                            JacobNovitsky
                            wrote 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
                            0
                            • hskoglundH Offline
                              hskoglundH Offline
                              hskoglund
                              wrote last edited by
                              #20

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

                              1 Reply Last reply
                              0
                              • 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 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
                                0
                                • S Offline
                                  S Offline
                                  SMITH Q
                                  Banned
                                  wrote last edited by
                                  #22
                                  This post is deleted!
                                  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