Important: Please read the Qt Code of Conduct -

Starting QMessageBox while moving window

  • Hello,

    I have a strange thing happening:

    when I trigger a modal QMessageBox while the user is moving the application window, then the mouse can't interact anymore with any application/window/button on the desktop. Only <alt + Tab> helps to restore a "normal" mouse operation. I am not sure if this is a bug, but it only appears on the Windows platform (Linux and Mac work fine in the same situation).


  • It maybe usual Windows window manager behavior or you have discovered a bug.
    Could you create simple app that reproduce the problem and post a bugreport on

  • Thank you for your reply. I will post a bugreport.
    At the same time I am looking for a workaround in the mean time. Any idea how I could detect a situation where the window is being moved or resized? I do not mean the signals "resizeEvent" or similar, since they are not called when the mouse is not moving (even if the mouse is caught in a window move or resize operation). I am more looking for a function like: "isResizeOperationUnderway", or "isWindowMoveOperationUnderway".


  • I don't know if these events exist.
    If you could post a simple example that reproduces the scenario we can try to find a solution together.

  • Hello again,

    thank you. I have posted the issue as a bugreport here:

    Attached to the bugreport, there is also a simple application that reveals the problem.


Log in to reply