Quote Originally Posted by pavanbarot View Post
Try this it might be helps you.

this->stackUnder(parentWidget()); [this means is your QMainWindow]
I used the following code to make a PyQt4 window the topmost window and to bring it to the front (in front of all other windows) in a Windows 10 64 bit environment:

self.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint )

# The following is drawn from: https://stackoverflow.com/questions/...p-to-the-front
# the following will remove minimized status
# and restore window with keeping maximized/normal state
self.setWindowState(self.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive)

# this will activate the window
self.activateWindow()