arkaha
11th February 2010, 22:21
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.
class TranslateView(QMainWindow):
def __init__(self, parent=None):
QMainWindow.__init__(self, parent)
def focusOutEvent(self, event):
print "out"
thanks in advance, and sorry for my english.
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.
class TranslateView(QMainWindow):
def __init__(self, parent=None):
QMainWindow.__init__(self, parent)
def focusOutEvent(self, event):
print "out"
thanks in advance, and sorry for my english.