catch event key pressed
Posted: Wed May 23, 2018 12:24 pm
Hi,
I have a calculator widget, and I need to get notfied when a key from the widget is pressed.
I saw in LibraryBrowser script :
But I don't know how you link a function for getting notified ?
Thanks.
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.