Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. QtWebKitsWidgets/QtGraphicsWebView:No such file or directory
Forum Update on Monday, May 27th 2025

QtWebKitsWidgets/QtGraphicsWebView:No such file or directory

Scheduled Pinned Locked Moved Unsolved Qt WebKit
webkit
11 Posts 4 Posters 2.5k Views
  • 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.
  • V vmur_90

    Hi folks,
    I keep getting the following error while trying to build a program of mine:
    In file included from /home/vmur/Envision/DebugBuild/Alloy/precompiled_cpp.cpp:1:
    /home/vmur/Envision/Alloy/src/precompiled.h:47:10: fatal error: QtWebKitWidgets/QGraphicsWebView: No such file or directory
    #include <QtWebKitWidgets/QGraphicsWebView>
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make[2]: *** [Alloy/CMakeFiles/Alloy-Precompiled-Header.dir/build.make:63: Alloy/CMakeFiles/Alloy-Precompiled-Header.dir/precompiled_cpp.cpp.o] Error 1
    make[1]: *** [CMakeFiles/Makefile2:4093: Alloy/CMakeFiles/Alloy-Precompiled-Header.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....

    Can someone pointer me in the right direction please.I am relatively new to Qt,so please be gentle.Thanks

    raven-worxR Offline
    raven-worxR Offline
    raven-worx
    Moderators
    wrote on last edited by
    #2

    @vmur_90
    QtWebKit is unavailable since Qt 5.6 onwards

    --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
    If you have a question please use the forum so others can benefit from the solution in the future

    1 Reply Last reply
    1
    • K Offline
      K Offline
      Konstantin Tokarev
      wrote on last edited by
      #3

      What Qt version are you using, and how did you install it? You may need to install QtWebKit separately

      V 1 Reply Last reply
      0
      • K Konstantin Tokarev

        What Qt version are you using, and how did you install it? You may need to install QtWebKit separately

        V Offline
        V Offline
        vmur_90
        wrote on last edited by vmur_90
        #4

        @Konstantin-Tokarev I have qt5.11.2.I installed it via the offline installer.I have also installed libqt5webkit5 libqt5webkit5-dev on my system

        K 1 Reply Last reply
        0
        • V vmur_90

          @Konstantin-Tokarev I have qt5.11.2.I installed it via the offline installer.I have also installed libqt5webkit5 libqt5webkit5-dev on my system

          K Offline
          K Offline
          Konstantin Tokarev
          wrote on last edited by Konstantin Tokarev
          #5

          @vmur_90 Then you can use Qt from the your system repositories

          V 1 Reply Last reply
          1
          • K Konstantin Tokarev

            @vmur_90 Then you can use Qt from the your system repositories

            V Offline
            V Offline
            vmur_90
            wrote on last edited by
            #6

            @Konstantin-Tokarev Problem persists.Now can you please tell me how i can make cmake find this file ie from inside qtcreator.I have tried exporting the path to no avail.Thanks

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

              Hi,

              Did you re-run cmake for your project from scratch ?

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

              V 1 Reply Last reply
              0
              • SGaistS SGaist

                Hi,

                Did you re-run cmake for your project from scratch ?

                V Offline
                V Offline
                vmur_90
                wrote on last edited by
                #8

                @SGaist Yes,i did

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

                  Just realized, are you trying to mix your distribution provided QtWebkit module with your Qt installation done using the installer ?

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

                  V 1 Reply Last reply
                  1
                  • SGaistS SGaist

                    Just realized, are you trying to mix your distribution provided QtWebkit module with your Qt installation done using the installer ?

                    V Offline
                    V Offline
                    vmur_90
                    wrote on last edited by vmur_90
                    #10

                    @SGaist Yes,is it possible?.The reason i ended up with 2 versions was i couldn't find qt-sdk on lubuntu repos

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

                      Your installer based Qt has absolutely no idea of what you have on your system and you should in any case not mix libraries from different versions of Qt.

                      There's no "Qt SDK" package in Ubuntu. You can start with qtbase5-dev and then add the dev packages corresponding to the modules you want to use.

                      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

                      • Login

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