Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36452

Bug on load image or video to QML using C++

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 5.2.0
    • None
    • WINDOWS 7
      QT 5.2
      CMAKE VERSION
      TESTING IN A VIRTUAL MACHINE FROM VMWARE

    Description

      Hi,

      I made a project for a church that show images on projector.

      On my mac(osx 10.9), everything is working nice, but on Windows machine the exact software dont load the images to QML and dont load vĂ­deos WMV to MediaPlayer.

      This problems i only get on Windows.

      The example project of loading video on QML works nice, but everything is done inside a QML application.

      My application change the image and video dynamic invoking a method. Look the code:

      FROM MY C++ APP:

      *QString fullFilePath = "file://C:/PRProjector-Project/data/images/allthingsnew-background.jpg";

      QMetaObject::invokeMethod(rootObject, "loadBackgroundImage", Q_RETURN_ARG(QVariant, returnedValue), Q_ARG(QVariant, fullFilePath));*

      FROM MY QML FILE:

      *
      import QtQuick 2.2
      import QtMultimedia 5.2
      import QtGraphicalEffects 1.0

      Item {
      function loadBackgroundImage(fullFilePath)

      { backgroundImage.source = fullFilePath; }

      Image

      { id: backgroundImage objectName: "backgroundImage" source: "" anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter anchors.fill: parent; }

      }
      *

      ERROR:

      *qrc:/resources/qml/ProjectorScreen.qml:36:5: QML Image: Cannot open: *

      Also, I got error error event on MediaPlayer object from QML when i try load some video too.

      REMEMBER: IT IS WORKING IN MAC OSX!

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aalpert Alan Alpert
            prchakal Paulo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes