Important: Please read the Qt Code of Conduct -

Window : Don't take focus

  • Hello,

    I have a main ApplicationWindow in QML. It is an information bar. I don't want this bar to be able to take focus.

    For instance, if the user is typing something in Chrome or whatever, if he clicks on the QML bar, the focus from his application (ex. Chrome) will be lost. He will have to click back on his application to regain focus.

    Here are two options:

    1. My QML window would just not take focus when clicked.
    2. If my QML window takes focus, I would be able to give the focus back to the previous application that had the focus.

    Thank you so much,


Log in to reply