Hello, i need to make my window top level when i need. Code of creating window:
class Application(QtGui.QMainWindow):
def __init__(self, parent=None):
QtGui.QMainWindow.__init__(self, None, Qt.Tool | Qt.FramelessWindowHint)
self.setFocusPolicy(Qt.StrongFocus)
self.setAttribute(Qt.WA_QuitOnClose, True)
And when i need i do:
self.setWindowFlags(Qt.WindowStaysOnTopHint)
But after running this part of code my window hides... I don't know, where is it. But my program doesn't close! Help! How can i make my window top most at need moment?