Hi everybody! i'm trying to write a program on a pyqt4, on my ubuntu.
I have QMainWindow with text field and button on it, and i need to know when the user stops working with my window, and switches to other(not mine) window, i've tryed to use focusOutEvent for QMainWindow but it does not work, please tell me what im doing wrong.
def __init__(self, parent=None):
def focusOutEvent(self, event):
print "out"
class TranslateView(QMainWindow):
def __init__(self, parent=None):
QMainWindow.__init__(self, parent)
def focusOutEvent(self, event):
print "out"
To copy to clipboard, switch view to plain text mode
thanks in advance, and sorry for my english.
Bookmarks