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. QWebView object is missing in Dİsplay Widgets
Forum Updated to NodeBB v4.3 + New Features

QWebView object is missing in Dİsplay Widgets

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 6 Posters 5.5k Views 3 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.
  • A Offline
    A Offline
    aysenur
    wrote on last edited by
    #1

    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-worxR 1 Reply Last reply
    0
    • A aysenur

      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-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @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
      2
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

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

        1 Reply Last reply
        1
        • raven-worxR raven-worx

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

          A Offline
          A Offline
          aysenur
          wrote on last edited by
          #4

          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
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            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
            0
            • SGaistS SGaist

              Hi,

              @raven-worx already explained why.

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

              A Offline
              A Offline
              aysenur
              wrote on last edited by
              #6

              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
              1
              • A aysenur

                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 Offline
                A Offline
                alyama
                wrote on last edited by
                #7

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

                jsulmJ 1 Reply Last reply
                0
                • A alyama

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

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by jsulm
                  #8

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

                  • Login

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