I wan't to close a form when another form on the background is clicked (or focussed), so that form isn't really active anymore.
I tried a focusOutEvent, but it doesn't seme to work?
Use @setWindowFlags(Qt::Popup);@ for your dialog
Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).