Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Frameless widget shakes during resizing

    General and Desktop
    qt6 resize frameless c++
    1
    2
    221
    Loading More Posts
    • 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.
    • bibasmall
      bibasmall last edited by bibasmall

      Hello! In my project I want main window to be frameless. So I've tried different approaches to make a frameless window resizable and draggable, for example based on @IMAN4K's code from this topic Make a frameless QWidget resizable with QRubberBand ?.

      The problem is that the main window shakes when resized regardless of the approach — it looks especially terrible when I put a widget in the right docking area — it looks like the content near the right main window border is being repainted several times with different width during the resizing (in the case of dock widget the whole widget trembles). It shakes only when I drag left border or left corners. I checked the shaking issue in a new project and found that the objects are shaking when they are in the layout.
      Is there a way to subclass layout to solve this problem? If so, what exactly should I override?

      Visually the same problem here Widget "shakes" during resizing. Any solution? unsolved — but 2 years have passed, maybe something has changed since then — and my main window shakes only when it's frameless.

      1 Reply Last reply Reply Quote 0
      • bibasmall
        bibasmall last edited by

        Any idea?
        I found that I could use Qt::CustomizeWindowHint to remove shaking if it was possible to recolor that white bar on top — but Windows 10 doesn't have that option.
        b9db0863-69eb-480d-9d18-c6bed295e5e2-image.png

        1 Reply Last reply Reply Quote 0
        • First post
          Last post