PDA

View Full Version : VideoPlayer makes QX11EmbedContainer disappear



simonbolek
3rd January 2011, 10:18
Hi gurus!

Using:
– Ubuntu 10.04 32 bit
– Qt 4.7 simple desktop application

I am creating QStackedWidget to display
in one page: the QX11EmbedContainer
in another page: VideoPlayer.

Embedding with embedClient works fine. Than(a couple of seconds/minutes later) in the other page I am creating the VideoPlayer with
...

VideoPlayer *player = new VideoPlayer(Phonon::VideoCategory, this);
...
It works fine as well, video is playing fine, however, when I switch back to the page with the QX11EmbedContainer it is gone, disappeared. Not the Object, it is just invisible. No repaint, show, refresh geometry function work.
I figured, that just the line where I construct the player object makes the QX11EmbedContainer disappear (not playing the video or such), when I uncomment it and do not use the object, QX11EmbedContainer is working fine.
Can you give me any clues why these two do not work together?

cheers
simon:)