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

QML refer .qrc even if external ressources are used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 4.7.0
    • None
    • Window7 worked
      Linux openSuse doesn't work

    Description

      Hello,
      I just found out that qml tends to refer any kind of files via the resource system
      as soon as I'm loading my qml sources via .qrc.

      Here a short example:
      I load a qml file via resource system into a QDeclarativeView:

      this->my_qml_view->setSource(QUrl("qrc:///qml_source/main.qml"));
      

      in main.qml I just load an Image

       
      
      Image {
          id: example
          source: "/home/me/My Data/picture.jpg"
      }
      
      

      When I try to run this example I get the message:

      QML Image: Cannot open: qrc:/home/me/My Data/picture.jpg

      I develop on a Windows7 system and it worked fine.
      Now I wanna test my application on my openSuse system and
      got this kind of message.

      I ask about this on the Qt developer platform and it seems
      that this could be a bug.

      Attachments

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

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            schneidi Jan Schneidereit
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes