Do I'm actually trying this on a system with a camera now, and it is not 
working. 

the following code:
boolVideoProbe::setSource(QObject*sourceObj)
{
m_source=sourceObj;
boolret;
QMediaObject*player=qvariant_cast<QMediaObject*>(sourceObj->property("mediaObject"));
ret=QVideoProbe::setSource(player);
qDebug()<<"VideoProbe::setSource()source,player,ret:"<<sourceObj<<player<<ret;
returnret;


}

Produces the following output
VideoProbe::setSource() source, player, ret: QDeclarativeCamera(0x2464910) 
QCamera(0x2464a10) false 

With setSource(() returning false, I can't get video frames from the camera.

Help?



________________________________
 From: Lopes Yoann <yoann.lo...@digia.com>
To: Jason H <scorp...@yahoo.com> 
Cc: Interests Qt <interest@qt-project.org> 
Sent: Friday, February 7, 2014 1:15 PM
Subject: Re: [Interest] QVideoProbe Woes
 
... 
2c. using (passing) a Camera element as sourceObj, what will happen?

It will also work.



Yoann Lopes
Senior Software Engineer - Digia, Qt
Visit us on: http://qt.digia.com
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to