Please nominate your Qt Champions for 2021!

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

    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