Hi,
I am displaying a video using phonon videoplayer.
Now on double clicking i want it to toggle between fullscreen and normal display.
i seem to be able to go to fullscreen but am not able to exit out of fullscreen.
i am pasting relevant portion of the code


myplayer.h
-------------

class MyPlayer : public Phonon::VideoPlayer{
Q_OBJECT
public:
MyPlayer(QWidget *parent=0);
private slots:
private:
protected:
void mouseDoubleClickEvent(QMouseEvent* e);

};

==
myplayer.cpp

MyPlayer::MyPlayer(QWidget *parent)
:Phonon::VideoPlayer(parent)
{
}


void MyPlayer::mouseDoubleClickEvent(QMouseEvent* e){

if(videoWidget()->isFullScreen()){
videoWidget()->exitFullScreen();
}else{
videoWidget()->enterFullScreen();
}
}

=======