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 QWebView object is missing in Dİsplay Widgets

    General and Desktop
    6
    8
    4678
    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.
    • A
      aysenur last edited by

      Hello,
      I have Qt Creator based on Qt 5.9.1. I want to add QWebView on the form but I can not drag and drop because it is missing.

      raven-worx 1 Reply Last reply Reply Quote 0
      • raven-worx
        raven-worx Moderators @aysenur last edited by

        @aysenur
        because it is missing since Qt 5.6 - QtWebkit module is deprecated since then and not part of release bundles.

        --- 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

        A 1 Reply Last reply Reply Quote 2
        • mrjj
          mrjj Lifetime Qt Champion last edited by

          read more here
          https://forum.qt.io/topic/76739/webkit-status-2017

          1 Reply Last reply Reply Quote 1
          • A
            aysenur @raven-worx last edited by

            I have QT 5.9 and there is not QtWebKit Module. I downloaded the package from the following link http://download.qt.io/community_releases/5.9/5.9.0-rc2/ . Where to copy it? Also under /usr/lib/x8664-linux-gnu/ there are many files about libQt5WebKit . What does this mean?
            Thank you inadvance.

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              Hi,

              @raven-worx already explained why.

              Did you took a look at the post @mrjj linked ?

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

              A 1 Reply Last reply Reply Quote 0
              • A
                aysenur @SGaist last edited by

                Thank you for your helps. I have solved the problem by using QWebEngineWidgets instead of QtWebKitView.
                1- In pro file I added QT += webenginewidgets .
                2-In header of the file I declared QWebEngineView* _view; object
                3- in the .cpp file I added #include <QtWebEngineWidgets/QWebEngineView>
                #include <QVBoxLayout>
                #include <QUrl> libraries
                4- In the constructor of cpp file QVBoxLayout* _layout=new QVBoxLayout(this);
                _view=new QWebEngineView(this);
                _view->load(QUrl("http://www.goole.com"));
                _view->show();
                _layout->addWidget(_view);

                A 1 Reply Last reply Reply Quote 1
                • A
                  alyama @aysenur last edited by

                  @aysenur this post was 2 years ago, but I still hope to get a response.
                  I have the same problem to. I follow your instructions from 1 to 4.
                  But I got this error, I am also using Qt 5.9 version
                  cannot find -IGL
                  collect2: error: Id returned 1 exit status

                  I am really bad at instructions. What does this mean?

                  jsulm 1 Reply Last reply Reply Quote 0
                  • jsulm
                    jsulm Lifetime Qt Champion @alyama last edited by jsulm

                    @alyama Hi and welcome!
                    said in QWebView object is missing in Dİsplay Widgets:

                    What does this mean?

                    It means that you did not install Mesa dev package.
                    Do this (I assume you're using a debian derivate like Ubuntu, as you did not tell anything about your OS):

                    sudo apt-get install build-essential libgl1-mesa-dev
                    

                    See https://doc.qt.io/qt-5/linux.html

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

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