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

QGraphicsWebView size is incorrect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Moved
    • P1: Critical
    • 4.7.1
    • 4.6.0
    • None
    • None

    Description

      Device: XM 5800

      1. Automatic resize of QGraphicsWebView fails completely.
      Code to create the first image:

      QApplication app(argc, argv);
      QGraphicsScene scene;
      QGraphicsView view(&scene);
      QGraphicsWebView webView;
      scene.addItem(&webView);
      webView.load(QUrl("http://www.google.com"));
      view.showFullScreen();
      app.exec();
      

      2. If size is set to fullscreen there is small border on RHS that cannot be scrolled to.
      added to first code:

      view.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
      view.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
      webView.resize(app.desktop()->screenGeometry().size());	
      

      3. Addition if scrollbars are not hidden from QGraphicsView we get double scrollbars but are able to access the RHS.

      //view.setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
      //view.setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
      

      Attachments

        1. default_size_full.png
          default_size_full.png
          79 kB
        2. graphicswebviewclient.zip
          211 kB
        3. page cut out.png
          page cut out.png
          5 kB
        4. scrollbars auto.png
          scrollbars auto.png
          40 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            riskedal Espen Riskedal (closed Nokia identity) (Inactive)
            e0150566 Janne Koskinen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes