You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, March 1st 2011, 4:46pm

Problem with Phonon in QDialog

I am developing a small GUI that currently has a GLWidget to display webcam images (captured using OpenCV). I was planning on adding a Groupbox with a phonon QWidget, but I am having some problems: at the moment that I try to create a VideoWidget, some threads exit with code 1 and the GUI is not displayed. In resume, I have a working GUI but the GUI is not shown and some threads killed if I add this line of code:

Source code

1
Phonon::VideoWidget *player_video = new Phonon::VideoWidget(this);



And this is the output of the debugger:

Source code

1
The thread 'Win32 Thread' (0x1190) has exited with code 1 (0x1).The thread 'Win32 Thread' (0xb58) has exited with code 1 (0x1).The thread 'Win32 Thread' (0x710) has exited with code 1 (0x1).The thread 'QThread' (0x570) has exited with code 1 (0x1).The thread 'Win32 Thread' (0x14b8) has exited with code 1 (0x1).The thread 'Win32 Thread' (0x1434) has exited with code 1 (0x1).The thread 'Win32 Thread' (0x274) has exited with code 1 (0x1).The thread 'Win32 Thread' (0xaf0) has exited with code 1 (0x1).



Does somebody have any insight of why is this not working? To add more information, it only happens with the VideoWidget, with this line of code, it compiles and works with no problem:

Source code

1
Phonon::AudioOutput *_player_audio = new Phonon::AudioOutput(Phonon::VideoCategory, this);


Thanks!