Hi,
I'm implementing my
Qt Code:
  1. void myWidget::keyPressEvent( QKeyEvent* pe )
  2. {
  3. ..code ..
  4. }
To copy to clipboard, switch view to plain text mode 
where I catch some keys. I have a problem with the space. I would run a routine when I press the space key so:
Qt Code:
  1. // start/stop
  2. case Qt::Key_Space:
  3. {
  4. qDebug() << "WaveWidget::keyPressEvent";
  5. bool playing;
  6. m_wave->getCurrentChannel()->isPlaying( &playing );
  7. if( playing == false )
  8. playSound();
  9. else
  10. StopSound();
  11. break;
  12. }
To copy to clipboard, switch view to plain text mode 

It simply doesn't work. If I change Key_Space with another key I have no problems.
Which can be the problem?