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. ui_mainwindow.h:28: error: QtWebKitWidgets/QWebView: No such file or directory #include <QtWebKitWidgets/QWebView>
Forum Updated to NodeBB v4.3 + New Features

ui_mainwindow.h:28: error: QtWebKitWidgets/QWebView: No such file or directory #include <QtWebKitWidgets/QWebView>

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 3 Posters 1.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.
  • sankarapandiyanS Offline
    sankarapandiyanS Offline
    sankarapandiyan
    wrote on last edited by
    #1

    Pro file

    QT += core gui sql
    QT += network
    QT += webkitwidgets

    Main windows.cpp

    #include <QDir>
    #include <QMessageBox>
    #include<QtWebKitWidgets/QWebView>
    #include<QWebView>

    ui.MAinwindow.h

    #include <QtGui/QWidget>
    #include <QtWebKitWidgets/QWebView>
    #include <QWebView>

    Qt web widget is not supported

    1 Reply Last reply
    0
    • VRoninV Offline
      VRoninV Offline
      VRonin
      wrote on last edited by
      #2

      WebKit is not part of Qt since Qt 5.6 if I'm not mistaken. Qt now uses webengine for the same tasks. There is a porting guide available here: https://doc.qt.io/qt-5/qtwebenginewidgets-qtwebkitportingguide.html

      "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
      ~Napoleon Bonaparte

      On a crusade to banish setIndexWidget() from the holy land of Qt

      sankarapandiyanS 1 Reply Last reply
      3
      • J.HilkJ Online
        J.HilkJ Online
        J.Hilk
        Moderators
        wrote on last edited by
        #3

        additionally to @VRonin
        QtWebEngine is it's own module and not part of the default precompiled libs. make sure you select it when downloading:

        11de67ba-59e8-4d20-9b19-d53c25cade48-image.png


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        sankarapandiyanS 1 Reply Last reply
        2
        • VRoninV VRonin

          WebKit is not part of Qt since Qt 5.6 if I'm not mistaken. Qt now uses webengine for the same tasks. There is a porting guide available here: https://doc.qt.io/qt-5/qtwebenginewidgets-qtwebkitportingguide.html

          sankarapandiyanS Offline
          sankarapandiyanS Offline
          sankarapandiyan
          wrote on last edited by
          #4

          @VRonin is it possible to use the webview/webkit in qt 4 version

          1 Reply Last reply
          0
          • J.HilkJ J.Hilk

            additionally to @VRonin
            QtWebEngine is it's own module and not part of the default precompiled libs. make sure you select it when downloading:

            11de67ba-59e8-4d20-9b19-d53c25cade48-image.png

            sankarapandiyanS Offline
            sankarapandiyanS Offline
            sankarapandiyan
            wrote on last edited by sankarapandiyan
            #5

            @J-Hilk Any other method to do this , its not possible to reinstall it , can you give me any other suggestion

            J.HilkJ 1 Reply Last reply
            0
            • sankarapandiyanS sankarapandiyan

              @J-Hilk Any other method to do this , its not possible to reinstall it , can you give me any other suggestion

              J.HilkJ Online
              J.HilkJ Online
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              @sankarapandiyan
              well, there's always building modules by hand. There are countless tutorials on how to do it, depending on your OS and target device. For more information you could take a look here:

              https://wiki.qt.io/Building_Qt_5_from_Git


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              sankarapandiyanS 1 Reply Last reply
              2
              • J.HilkJ J.Hilk

                @sankarapandiyan
                well, there's always building modules by hand. There are countless tutorials on how to do it, depending on your OS and target device. For more information you could take a look here:

                https://wiki.qt.io/Building_Qt_5_from_Git

                sankarapandiyanS Offline
                sankarapandiyanS Offline
                sankarapandiyan
                wrote on last edited by
                #7

                @J-Hilk I am using Ubuntu 18.04 and the qt version is Qt Creator 4.8.2
                Based on Qt 5.11.3 (GCC 8.3.0, 32 bit)

                VRoninV 1 Reply Last reply
                0
                • sankarapandiyanS sankarapandiyan

                  @J-Hilk I am using Ubuntu 18.04 and the qt version is Qt Creator 4.8.2
                  Based on Qt 5.11.3 (GCC 8.3.0, 32 bit)

                  VRoninV Offline
                  VRoninV Offline
                  VRonin
                  wrote on last edited by
                  #8

                  @sankarapandiyan said in ui_mainwindow.h:28: error: QtWebKitWidgets/QWebView: No such file or directory #include <QtWebKitWidgets/QWebView>:

                  qt version is Qt Creator 4.8.2
                  Based on Qt 5.11.3

                  This is the version of the IDE not of the library you use. You can check the real version of Qt in the kits tab in the options.

                  the webview/webkit in qt 4 version

                  Qt 4 is ancient but if you mean using it in modern version of Qt then ther's a fork on github you can use

                  "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
                  ~Napoleon Bonaparte

                  On a crusade to banish setIndexWidget() from the holy land of Qt

                  1 Reply Last reply
                  3

                  • Login

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