I've got a Phonon::VideoPlayer which I've subclassed and reimplemented VideoPlayer::mouseDoubleClickEvent. I'm trying to have it enter fullscreen when double clicked, and exit when double clicked. So far, it will enter fullscreen, but then double click doesn't work.

VideoWindow.h
Qt Code:
  1. #pragma once
  2. #include <QtGui>
  3. #include <Phonon>
  4.  
  5. class VideoWindow : public Phonon::VideoPlayer
  6. {
  7. Q_OBJECT
  8. public:
  9. VideoWindow(Phonon::Category category, QWidget * parent = 0);
  10.  
  11. protected:
  12. void mouseDoubleClickEvent( QMouseEvent *evt );
  13. };
To copy to clipboard, switch view to plain text mode 

VideoWindow.cpp
Qt Code:
  1. #include "VideoWindow.h"
  2.  
  3. VideoWindow::VideoWindow(Phonon::Category category, QWidget *parent)
  4. : VideoPlayer(category, parent)
  5. {
  6. }
  7.  
  8. void VideoWindow::mouseDoubleClickEvent( QMouseEvent *evt )
  9. {
  10. this->videoWidget()->setFullScreen(
  11. !this->videoWidget()->isFullScreen() );
  12. evt->accept();
  13. }
To copy to clipboard, switch view to plain text mode