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. QtWebKit/QWebView: No such file or directory
Qt 6.11 is out! See what's new in the release blog

QtWebKit/QWebView: No such file or directory

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 2 Posters 9.6k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by A Former User
    #1

    Hi,

    I have created a GUI with just a QWebView, Set the url in the preferences (not programatically).

    I am using QT 4.8.

    My .pro file has QT += core gui network webkit

    However, I still receive the error "QtWebKit/QWebView: No such file or directory"

    To add, I am using ubuntu 14.04 to compile and have installed libqtwebkit-dev

    Any help will be really appreciated.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome
      Could you try with
      QT += webkit webkitwidgets

      ? 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi and welcome
        Could you try with
        QT += webkit webkitwidgets

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        @mrjj

        Thank you for your reply. I have tried but still receive same error.

        fatal error: QtWebKit/QWebView: No such file or directory
        #include <QtWebKit/QWebView> ^

        mrjjM 1 Reply Last reply
        0
        • ? A Former User

          @mrjj

          Thank you for your reply. I have tried but still receive same error.

          fatal error: QtWebKit/QWebView: No such file or directory
          #include <QtWebKit/QWebView> ^

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @JonaDev
          hmm and u did run qmake from menu ?

          ? 1 Reply Last reply
          0
          • mrjjM mrjj

            @JonaDev
            hmm and u did run qmake from menu ?

            ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            @mrjj

            I do not see this option. I quickly created the form with Qt Designer. http://doc.qt.io/qt-4.8/designer-manual.html

            I am quite new to QT, please dismiss my ignorance :(

            mrjjM 1 Reply Last reply
            0
            • ? A Former User

              @mrjj

              I do not see this option. I quickly created the form with Qt Designer. http://doc.qt.io/qt-4.8/designer-manual.html

              I am quite new to QT, please dismiss my ignorance :(

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @JonaDev
              ignorance dismissed :)

              Oh, in 4.8 Designer and creator is 2 different programs.
              In creator where you have the project files, there should be a Build menu?

              question: you must use 4.8? Its pretty old.

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #7

                @mrjj

                I fixed it. Was my bad all along,

                I looked in the created makefile and realised it was looking for the libraries in a different place. I added the libraries to this location and it compiles perfectly.

                Thank you for your time.

                mrjjM 1 Reply Last reply
                1
                • ? A Former User

                  @mrjj

                  I fixed it. Was my bad all along,

                  I looked in the created makefile and realised it was looking for the libraries in a different place. I added the libraries to this location and it compiles perfectly.

                  Thank you for your time.

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by mrjj
                  #8

                  @JonaDev
                  Super. It would been my next question :)
                  Happy coding :)
                  Could you post the correct location ?

                  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