PDA

View Full Version : no matching function for call to 'QVideoWidget::QVideoWidget(QMediaPlayer**, MainWind



cuteatul
12th July 2011, 06:36
hey all,

while writting my symbian application I am getting this error
no matching function for call to 'QVideoWidget::QVideoWidget(QMediaPlayer**, MainWindow&)

and my code is



QApplication app(argc, argv);

MainWindow mainWindow;
mainWindow.setOrientation(MainWindow::ScreenOrient ationAuto);
mainWindow.showExpanded();

QMediaPlayer *mediaPlayer = new QMediaPlayer;
QMediaPlaylist *list = new QMediaPlaylist(mediaPlayer);
list->addMedia(QUrl("Song"));



QVideoWidget *widget = new QVideoWidget(&mediaPlayer, mainWindow);
widget->show();
mediaPlayer->play();


what is wrong with this ..
plz help me out...
thanks..

dbzhang800
12th July 2011, 07:04
The constructor of QVideoWidget is :


QVideoWidget::QVideoWidget ( QWidget * parent = 0 )

Please read the manual:

http://doc.qt.nokia.com/qt-mobility-snapshot/qvideowidget.html#QVideoWidget

cuteatul
12th July 2011, 07:11
what modification do I need to have in my code....???
Plz make any correction .. if possible....?????

I am not clear about it......

moviemax
12th July 2011, 22:55
QVideoWidget *widget = new QVideoWidget(&mainWindow);