I have a calculator widget, and I need to get notfied when a key from the widget is pressed.
I saw in LibraryBrowser script :
Code: Select all
var dirTree = formWidget.findChild("DirectoryTree");
dirTree.installEventFilter(new REventFilter(QEvent.KeyPress.valueOf(), true));
Thanks.