[Qt-interest] Playing files from resource files
Tiago Correia
tiago at cnotinfor.pt
Wed Dec 17 19:35:59 CET 2008
Hello,
> I need to create a very simple application and send to support to report
> the bug.
>
I've created a simple application, and it seems there is a problem in my
installation of Visual Studio 2005 Integration.
Because I decided to use the command line, and use a PRO file and qmake and
nmake and it did work without any problems.
So Qt doesn't have any bug, the bug in somehere in Visual Studio. I've
noticed that the QRC files don't have the custom build tool defined, so I've
to do it my self, and then include the file created.
This is the code I made, that work with out any problem:
Phonon::VideoPlayer *vp = new Phonon::VideoPlayer(Phonon::VideoCategory, 0
);
QVBoxLayout *v = new QVBoxLayout();
setLayout( v );
v->addWidget( vp );
vp->play( Phonon::MediaSource( ":/video.mpg" ) );
>
> --
> Tiago Correia
> chief technology officer
>
> cnoti inovação & desenvolvimento – Aprendizagem enRiquecida pela Tecnologia
> www.cnotinfor.pt
> Telefone: +351 239 499 231
>
> Subscreva gratuitamente a nossa Newsletter BICA – Boletim informativo de
> Interactividade, Comunicação e Aprendizagem
>
>
--
Tiago Correia
chief technology officer
cnoti inovação & desenvolvimento – Aprendizagem enRiquecida pela Tecnologia
www.cnotinfor.pt
Telefone: +351 239 499 231
Subscreva gratuitamente a nossa Newsletter BICA – Boletim informativo de
Interactividade, Comunicação e Aprendizagem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081217/a2f58d19/attachment.html
More information about the Qt-interest-old
mailing list