Qt 6.11 is out! See what's new in the release
blog
Qt window automatically closes the window when clicking outside the window area
-
What sort of "window" is it? The sort of behaviour you want is supported by
Popup. SeeclosePolicyproperty.Thanks for your reply.
Not only does the closing strategy require the mouse to click outside to disappear, but also a button to control closing and showing. Clicking on the button triggers the closing strategy at the same time, which will cause the window to close and then open again.