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. Scrollbars on a QGLWidget
Forum Updated to NodeBB v4.3 + New Features

Scrollbars on a QGLWidget

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.8k Views 1 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.
  • V Offline
    V Offline
    Vit_H
    wrote on last edited by
    #1

    I'm using a QGLWidget in my application, contained within a QScrollArea.
    My QGLWidget subclass resizes itself in its constructor depending on the data I provide to it (usually larger than the size of the window); the QScrollArea was intended to keep the contents of the QGLWidget at the same zoom level regardless of the actual size of the widget. It worked fine in Qt 4.6, but updating to 4.7 seems to have broken it. The size of the QGLWidget's viewport seems to be fixed to the original size of the QScrollArea (i.e. the contents are shrunk and distorted), and the QScrollArea's scrollbars have no effect. The QGLWidget's viewport is fixed to the bottom-left of the QScrollArea.
    Here are some screenshots showing the problem:
    "Old screenshot using Qt 4.6, with the app working correctly":http://i54.tinypic.com/t88aoi.png
    "Useless scroll bars in 4.7":http://i53.tinypic.com/33z8isl.png
    "Resizing the window":http://i52.tinypic.com/11s2e10.png

    I'm planning on recoding it from scratch anyway, but it would be very useful if I knew the cause of the problem and how to avoid it.

    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