PDA

View Full Version : Very confused About Qt5 and Phonon/QtMultimedia



aguayro
20th January 2013, 14:02
Hi, i've been reading and googling about Phonon and Qt5, and i'm very confused.
Do i need to install any module? Where can i download it? have i to compile it?
Can't find clear information about it. Some places says it's no more included in Qt5, but i seem to have the headers if i type <QtMultimedia> in Qt Creator,... but, i get error when compiling:

error: C2079: 'videoPreview' uses undefined class 'QVideoWidget'

Coul somebody help me with this?

wysota
20th January 2013, 14:21
QVideoWidget is part of QtMultimedia module in Qt5. Remember to enable the module in the project file.

aguayro
20th January 2013, 14:29
Oh thanks!! Always saving my ass, i'm going to build a monument in your name :D

EDIT: Mmm, QT += multimedia doesn't work, any sugerence?

EDIT2: ok, this doesn't work:


QT += core gui widgets network multimedia multimediawidgets


This works:


QT += core gui widgets network
QT += multimedia multimediawidgets