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. QMdiSubWindow with QGraphicsView not always fully drawn
Forum Updated to NodeBB v4.3 + New Features

QMdiSubWindow with QGraphicsView not always fully drawn

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 631 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.
  • M Offline
    M Offline
    mvidelgauz
    wrote on last edited by
    #1

    Hello,

    I have a QMdiSubWindow with QGraphicsView inside. There is a problem with rendering this window when it is being resized beyond some (seems to cached) size, see Picture 1

    "!https://drive.google.com/file/d/0B9uPV8rcbVu8d21UN2dSV1JyOFU/edit?usp=sharing(Picture 1)!":https://drive.google.com/file/d/0B9uPV8rcbVu8d21UN2dSV1JyOFU/edit?usp=sharing

    When I minimize and restore this window it is getting redrawn correctly, see Picture 2

    "!https://drive.google.com/file/d/0B9uPV8rcbVu8bXRLZ3Z3MU5aRXM/edit?usp=sharing(Picture 2)!":https://drive.google.com/file/d/0B9uPV8rcbVu8bXRLZ3Z3MU5aRXM/edit?usp=sharing

    This last fully redrawn size seems to be somehow "remembered" as maximum for the following attempts to resize window further. Window is redrawn correctly if I move low-right corner to make window smaller. But when I move mouse to enlarge the window that remembered (after last minimize/restore) size acts as maximum rendering rectangle. Everything beyond this rectangle is not redrawn. The "logical" state of resize seems to work correctly - I can move low-right corner as much I want. When I release mouse button all I have to do to get entire window redrawn is to minimize/restore it again. It will then be redrawn up to the point where I released mouse and this will become new "draw clipping" rectangle - until next minimize/restore operation.

    Does anyone have an idea how can I force entire QMdiSubWindow to be redrawn while I am resizing it? (I tried update(), repaint(), ...)

    Thank you!

    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