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

How do I change the focus without hiding the dialog?



  • If the dialog has no focus or changes to another location, the dialog is hidden. What if I do not want to hide it? setWindowFlags (Qt :: WindowDoesNotAcceptFocus); This is always on top, so it is not me.


  • Lifetime Qt Champion

    Hi
    Give dialog parent (in ctor) and maybe use WindowStaysOnTopHint flag.
    Open it with show()
    If you want a non blocking floating dialog.


Log in to reply