PDA

View Full Version : QTreeWidget keyPressEvent



hgedek
18th August 2007, 14:06
I am using QTreeWidget in an QStackedWidget.Only there is a TreeWidget in one of the pages.
I created keyPressEvent and keyReleaseEvent.When I pressed one of the "Enter-Up-Space-Down" keys I cant use them in keyPressEvent but I can use in keyRelaseEvent.How can control this?Or How can use these keys?

jpn
18th August 2007, 14:41
Exactly how did you reimplement keyPressEvent()? Does the function signature match exactly QWidget::keyPressEvent()?

hgedek
18th August 2007, 15:26
Yes exactly the same implementation.
void keyPressEvent(QKeyEvent *event):

->We get the other keys except the above list.

jpn
18th August 2007, 16:33
Do you have any event filters installed? Could you paste the relevant code?