Situation: QDialog without borders remains successful on top of other applications.
The problem is that when you click on this application window always on top, the following happens:
- When pressed, pressing is always activated on the top panel.
- The click-on application window always captures the focus of the previous active / focused application.
Is there a chance that when you click on this inactive and unfocused application window is always on top,
- current application will not lose activation and focus
- while the user can still interact with the constantly running application (pressing buttons or drop-down menus, dragging the window)?
I work with Qt, but there is no problem using my own Windows API.
I tried the following Qt windowFlag:
Qt::WindowDoesNotAcceptFocus , but it does not work: the always-on-top application is activated, focused.Qt::WindowTransparentForInput , the application is always on top really transparent for clicks: it is not activated and not focused, but the buttons, unfortunately, do not work when hit.
Derek source share