I've got a Qt dialog window that contains a QPlainTextEdit
widget, for which I've created a Software Input Panel (SIP), following the example here. The function of the dialog window requires it to remain on top. As such, the SIP too must remain on top -- but overlaying the dialog. The problem I find is that:
- If I set
Qt::WindowStaysOnTopHint
on the dialog only the SIP falls behind it. - If I set
Qt::WindowStaysOnTopHint
on the SIP only the dialog window that can now be eclipsed by other windows, same thing happens if I setQt::WindowStaysOnTopHint
on the dialog and SIP, clearlyQt::WindowStaysOnTopHint
is applicable to one widget only.
What can be done to ensure that the dialogs stack in this order? Making the SIP modal is not really an option or good solution.
If it matters I'm coding in C++
PS Please take a look at my follow on question as well.
InputPanelContext
object as shown in the example. – Olumide