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();
w2 = new CVideoPhonon();
w2->show();
To copy to clipboard, switch view to plain text mode
where CVideoPhonon is just another mainWindow, which is used to play video files.
class CVideoPhonon : public QMainWindow
To copy to clipboard, switch view to plain text mode
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
Bookmarks