Qt user resize event ends (stops)

后端 未结 5 1497
后悔当初
后悔当初 2021-02-10 03:19

I have a QWidget and i need to do some actions (refresh a picture in widget) when resize event ends. How can i catch this action? I need to catch moment when user ENDs all his r

5条回答
  •  再見小時候
    2021-02-10 03:54

    Mouse events on windows decoration are managed by the underlying window system, this is why you can't catch them as you tried. I had the same issue once, the solution I chose was to (re)start a singleshot QTimer on each resize event, and only process the update after the timer interval elapsed. Not very sexy but I did not find any other workaround..

提交回复
热议问题