Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Other window - don't lose activate / focus



  • Hi,

    I have a main window with my app and I would like to have a small Frameless Window - QPushButton ( don't has parent ). When I clicked on this button I don't want to lose active / focus in my main Window. Is any flag which I should use? I tried

    button->setFocusPolicy(Qt::FocusPolicy::NoFocus);
    

    but It doesn't work.



  • you could explicitly refocus to the main window as part of your button handler?


Log in to reply