Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Solved C1083: Cannot open include file: 'QWebView': No such file or directory

    General and Desktop
    3
    5
    1746
    Loading More Posts
    • 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.
    • P
      Panoss last edited by Panoss

      I have included webkitwidgets and webkit in my .pro file.
      But still I get the error mentioned in the title when I use:

      #include <QWebView>
      

      How can I fix this?
      (Qt Creator 2.7.0 based on Qt 5.0.2 32bit, Win xp)

      mrjj 1 Reply Last reply Reply Quote 0
      • Chris Kawa
        Chris Kawa Moderators last edited by Chris Kawa

        After you modify .pro file re-run qmake (menu Build-> Run qmake).
        Oh, and make sure you're using Qt version that still has QWebView. It was deprecated and then removed in later versions.

        Btw. QtCreator 2.7.0 is pretty old. Current version is 4.2.2. Have you thought about upgrading?

        1 Reply Last reply Reply Quote 3
        • mrjj
          mrjj Lifetime Qt Champion @Panoss last edited by

          @Panoss
          If you want to use a newer of Qt, you should check out
          https://forum.qt.io/topic/76739/webkit-status-2017

          Note. You can use a newer Creator even if you stay older Qt.
          The version used for building Creator is not related to any version of Qt you have installed and
          use to build your apps.

          1 Reply Last reply Reply Quote 0
          • P
            Panoss last edited by Panoss

            I did: menu Build-> Run qmake and it was fixed!
            Thank you guys you were grate help!

            (I have my reasons I wanna keep this version of Qt)

            mrjj 1 Reply Last reply Reply Quote 0
            • mrjj
              mrjj Lifetime Qt Champion @Panoss last edited by

              @Panoss
              ok, but you can use a new Creator if u want.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post