Results 1 to 4 of 4

Thread: no matching function for call to 'QVideoWidget::QVideoWidget(QMediaPlayer**, MainWind

  1. #1
    Join Date
    Jul 2011
    Location
    Gurgaon
    Posts
    25
    Thanks
    4
    Qt products
    Qt3 Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default no matching function for call to 'QVideoWidget::QVideoWidget(QMediaPlayer**, MainWind

    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

    Qt Code:
    1. QApplication app(argc, argv);
    2.  
    3. MainWindow mainWindow;
    4. mainWindow.setOrientation(MainWindow::ScreenOrientationAuto);
    5. mainWindow.showExpanded();
    6.  
    7. QMediaPlayer *mediaPlayer = new QMediaPlayer;
    8. QMediaPlaylist *list = new QMediaPlaylist(mediaPlayer);
    9. list->addMedia(QUrl("Song"));
    10.  
    11.  
    12.  
    13. QVideoWidget *widget = new QVideoWidget(&mediaPlayer, mainWindow);
    14. widget->show();
    15. mediaPlayer->play();
    To copy to clipboard, switch view to plain text mode 

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

  2. #2
    Join Date
    Aug 2009
    Posts
    52
    Thanked 10 Times in 10 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: no matching function for call to 'QVideoWidget::QVideoWidget(QMediaPlayer**, Main

    The constructor of QVideoWidget is :

    Qt Code:
    1. QVideoWidget::QVideoWidget ( QWidget * parent = 0 )
    To copy to clipboard, switch view to plain text mode 

    Please read the manual:

    http://doc.qt.nokia.com/qt-mobility-...l#QVideoWidget

  3. #3
    Join Date
    Jul 2011
    Location
    Gurgaon
    Posts
    25
    Thanks
    4
    Qt products
    Qt3 Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Question Re: no matching function for call to 'QVideoWidget::QVideoWidget(QMediaPlayer**, Main

    what modification do I need to have in my code....???
    Plz make any correction .. if possible....?????

    I am not clear about it......
    Last edited by cuteatul; 12th July 2011 at 12:32.

  4. #4
    Join Date
    Jun 2010
    Location
    Germany, Munich
    Posts
    16
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: no matching function for call to 'QVideoWidget::QVideoWidget(QMediaPlayer**, Main

    Qt Code:
    1. QVideoWidget *widget = new QVideoWidget(&mainWindow);
    To copy to clipboard, switch view to plain text mode 

  5. The following user says thank you to moviemax for this useful post:

    cuteatul (13th July 2011)

Similar Threads

  1. Replies: 1
    Last Post: 19th March 2011, 10:57
  2. about no matching function for call to
    By Alain Delon in forum General Programming
    Replies: 1
    Last Post: 5th March 2011, 21:30
  3. Replies: 0
    Last Post: 8th April 2010, 11:08
  4. no matching function for call to setupUi
    By ctote in forum Qt Programming
    Replies: 2
    Last Post: 30th January 2010, 15:20
  5. No Matching function to call...
    By weepdoo in forum Qt Programming
    Replies: 2
    Last Post: 7th November 2008, 17:30

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.