Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-2021

Clicking links for embedded QWebViews doesn't work

    XMLWordPrintable

    Details

      Description

      This used to work earlier. Right clicking a link and choosing "open link" works. This example creates a native QWebView and a graphicsview embedded web view for comparison:

      #include <QtGui>
      #include <QWebView>

      int main(int argc, char **argv)
      {
      QApplication app(argc, argv);

      QGraphicsScene *scene = new QGraphicsScene;

      QWebView *webView = new QWebView;
      webView->setUrl(QUrl("http://www.sau.no/"));

      scene->addWidget(webView);
      scene->setSceneRect(scene->itemsBoundingRect().adjusted(-50, -50, 50, 50));

      QGraphicsView view(scene);
      view.show();
      view.setWindowTitle(QLatin1String("Graphicsview embedded web view"));

      QWebView native;
      native.setUrl(QUrl("http://www.sau.no/"));
      native.show();
      native.setWindowTitle(QLatin1String("Native web view"));

      return app.exec();
      }

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              bjnilsen Bjørn Erik Nilsen
              Reporter:
              rodal Samuel Rødal
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes