[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Key Pressed or Released in keyPressEvent ?
From: Markus Goetz <guruz () gmx ! de>
Date: 1999-08-28 19:56:14
[Download RAW message or body]
Hi KDE Programmers,
I have a new controll that derrives from QComboBox and does something special
when the RETURN Key is pressed.
The keyPressEvent of it looks like this :
void KKeyWordComboBox::keyPressEvent ( QKeyEvent * e )
{
QComboBox::keyPressEvent (e);
if (e->key() == Key_Return)
{
emit pressedReturn();
}
}
The problem is : If the user presses RETURN once but the event is raised twice
(i think once for pressed and once for released).
So how can i make that it's only raised once ? i tried something with sleep(3)
but this is ugly.
Markus
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic