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. Frameless widget shakes during resizing

Frameless widget shakes during resizing

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt6resizeframelessc++
3 Posts 2 Posters 600 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.
  • bibasmallB Offline
    bibasmallB Offline
    bibasmall
    wrote on last edited by bibasmall
    #1

    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
    0
    • bibasmallB Offline
      bibasmallB Offline
      bibasmall
      wrote on last edited by
      #2

      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
      0
      • D Offline
        D Offline
        Dawn_of_Time
        wrote on last edited by
        #3

        I have the same problem, looking for someone to answer 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