You can call raise() in your widget so that it appears in front of all other child widgets of the parent in which it is located. If I read your question correctly, this is your behavior. However, any child that you create and add to the parent widget will be automatically placed above these widgets, so you may need to reinstall the widget after adding, or you might consider an alternative way to manage the parent / child relationships.
source share