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. Changing window resize behavior
Forum Update on Monday, May 27th 2025

Changing window resize behavior

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 893 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.
  • M Offline
    M Offline
    mabeghin
    wrote on 15 Mar 2018, 11:45 last edited by mabeghin
    #1

    Hi,
    Resizing the main window of my QWidgets application is quite slow (there are lots of widgets, scroll areas etc and it's on a Retina Mac so 2880x1800). I'd like to change it so when resizing we just see the outline and the window is only resized when we release mouse button.
    Any option to change the resizing mode of windows with Qt ? (the problem is mostly on macOS)
    Thanks !

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 15 Mar 2018, 13:48 last edited by
      #2

      Hi
      Does macOs have an option to scale / move windows as outlines as WindowsOS /offers?
      As far as I know, Qt offer no such feature on its own.
      You might be able to use an event filter to intercept the resize events and
      do differently by also catching paintEvent and instead draw a rect on the widget but you would also make sure its not still recalculating anything.
      I see no easy way to get this and event filter might have unforeseen issues.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mabeghin
        wrote on 15 Mar 2018, 20:25 last edited by mabeghin
        #3

        You might be able to use an event filter to intercept the resize events

        I tried it and resizing is smoother but anyway the main thread event loop is not processing timer or other events while resizing. Changing threading handling in my application is not an easy task now unfortunately, but it seems that would be the only way to deal with this issue.

        1 Reply Last reply
        0

        1/3

        15 Mar 2018, 11:45

        • Login

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