PDA

View Full Version : open a video file in a new window...



jiapei100
19th September 2009, 14:53
Hi, all:

I'm able to play video files by using Phonon.

However, I'm now playing it in the mainWindow, which actually occupies quite a lot of spaces in this window.

Therefore, I would like to realize something like:

whenever I pick up a video file, a new window should jump out and play the video, so that this kind of display won't occupy the spaces in my main Window.

How can I do it please?

I tried to use a .ui way, this seems not working.


w2 = new CVideoPhonon();
w2->show();
where CVideoPhonon is just another mainWindow, which is used to play video files.

class CVideoPhonon : public QMainWindow

So, do I need to change it to QWidget rather than QMainWindow?

No idea of how to solve it.

BTW, I'm not doing anything like MDI or SDI. My mainWindow is basically a dialog and I would like the video display window to be another dialog whose only functionality is for video display.

Can anybody give me a hint please?

Best Regards
JIA Pei