Basically you can't. Windows have a protection for such random focus taking. The best thing you can do is to use some custom window flags like Qt::ToolTip and some styles to show the window like a active tooltip(similar like chat messengers display custom tooltips above the task bar). You can keep it visible as long as you wish. Anyway you still will not have the focus but in this way you will make it easier for the user to click on that window.![]()
Bookmarks