{
if( event->isAutoRepear() ) // if it's not initial key press - do nothing
{
return;
}
// do your magic here
}
{
if( event->isAutoRepear() ) // if it's not initial key press - do nothing
{
return;
}
// do your magic here
}
myClass::keyPressEvent( QKeyEvent* event )
{
if( event->isAutoRepear() ) // if it's not initial key press - do nothing
{
return;
}
// do your magic here
}
myClass::keyReleaseEvent( QKeyEvent* event )
{
if( event->isAutoRepear() ) // if it's not initial key press - do nothing
{
return;
}
// do your magic here
}
To copy to clipboard, switch view to plain text mode
Bookmarks