Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. QGraphicsWebView : Resize viewport without scaling up/down content

QGraphicsWebView : Resize viewport without scaling up/down content

Scheduled Pinned Locked Moved Unsolved Qt WebKit
2 Posts 2 Posters 499 Views
  • 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.
  • K Offline
    K Offline
    kamui
    wrote on last edited by
    #1

    Hello,

    I'm searching for clues !

    I have two Qt apps (1 => qt 4.8 and 2 => qt 5.5) really close to each other. They both permit to attach HTML widgets to a scene. With the same HTML widget, I have two different behaviors on resizing, and I can't figure out if it comes from changes between apps codes or in QGraphicsWebView differences between the two versions.

    With Qt 4.8 (the behavior I want)
    0_1564560019766_notes-1.png

    1_1564560019770_notes-2.png

    With Qt 5.5 (the behavior I don't want)

    2_1564560019771_notes-3.png

    3_1564560019771_notes-4.png

    As you can see, In the first case the viewport is resized and the scroll bars disappear.
    In the second one, the scroll bars are scaled up like if it was an image...

    If you have any clue which could explain this difference, it would be very helpful.

    These are the main classes involved in the instanciation of the HTML widgets in the respectively qt4.8 and qt5.5 apps
    https://github.com/Sankore/Sankore-3.1/blob/master/src/domain/UBGraphicsWidgetItem.cpp
    https://github.com/OpenBoard-org/OpenBoard/blob/master/src/domain/UBGraphicsWidgetItem.cpp

    I tried to figure out if it was a matter of size policy, itemChange() differences, min/max sizes, but I don't find anything that could explain this.

    Thanks in advance for your help !

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      While this clearly looks like a regression, Qt 5.5 is way outdated. Please test against a more recent version. Qt 5.12.4 is the current LTS but you can also try Qt 5.13.0 which is the current release.

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

      1 Reply Last reply
      0

      • Login

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