November 12, 2010

Mitricho Mitricho
Lab Rat
3 posts

QML Video Element crash

 

I’ve just installed Qt 4.7.1 and QtMobility 1.1 Final, to play with QML. But when I run my simple QML project qmlviewer crashes. Here is my code:

  1. import Qt 4.7
  2. import QtMultimediaKit 1.1
  3.  
  4.  Video {    
  5.      id: video
  6.      width : 800
  7.      height : 600
  8.      source: "video.avi"
  9.  
  10.      MouseArea {
  11.          anchors.fill: parent
  12.          onClicked: {
  13.              video.play()
  14.          }
  15.      }
  16.      Keys.onSpacePressed: video.paused = !video.paused
  17.      Keys.onLeftPressed: video.position -= 5000
  18.      Keys.onRightPressed: video.position += 5000
  19.  }

QtCreator doesn’t show any errors. I beleive QtMobility is installed properly, because the Audio element works very well – plays music, etc., but the Video… Have I done something wrong? I’m runnibg Windows XP SP3.

By the way, even when qmlviewer crashes I still can hear the movie’s sound.

1 reply

November 15, 2010

mbrasser mbrasser
Lab Rat
452 posts

Hi,

It shouldn’t be crashing. Could you add a bug report via bugreports.qt.nokia.com for this?

Thanks,
Michael

 
  ‹‹ Using QML the send post XML-requests      [Solved] Custom Component [propery alias VS ..] ››

You must log in to post a reply. Not a member yet? Register here!