Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [solved] QML from resource system
QtWS25 Last Chance

[solved] QML from resource system

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 3 Posters 7.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Schneidi
    wrote on last edited by
    #1

    Hey guys,

    Yesterday I changed my current project to use qml sources out of the .qrc and it seems to work.

    Just now I'm testing the result on my Linux system and it doesn't work.

    The Problem is that my qml parts seem to have some issues on loading image files.

    For example in my main qml file I want to load some images.
    Some of them are static and loaded from the .qrc file others are dynamically
    and loaded from other directories.

    As expected the static images from the resource are loaded correctly but
    the dynamic images can't be loaded because the files are also referred via
    the resource file.

    My main qml file tries to find :
    "/home/me/My Data/picture_1.jpg"
    in
    "qrc:/home/me/My Data/picture_1.jpg"

    Why does qml try to find external files in the qrc: system ?

    On my windows system this doesn't happen and everything works.

    1 Reply Last reply
    0
    • 2 Offline
      2 Offline
      2beers
      wrote on last edited by
      #2

      I just realized that. I think it's a bug. you should submit it :)

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Schneidi
        wrote on last edited by
        #3

        http://bugreports.qt.nokia.com/browse/QTBUG-15438

        So lets see what happens ; )

        1 Reply Last reply
        0
        • 2 Offline
          2 Offline
          2beers
          wrote on last edited by
          #4

          you have my vote :D

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Schneidi
            wrote on last edited by
            #5

            Ok this problem is going to be fixed I believe.

            I got a nice hint to solve this issue. Look at the "comments":http://bugreports.qt.nokia.com/browse/QTBUG-15438?focusedCommentId=133041&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-133041 there is a good example to do it the right way.

            On my Linux system it worked well but I don't validate this on my Windows system.

            Because of this comment I guess that this thread could be marked as [solved].
            If anybody has still problems with this, please comment.

            1 Reply Last reply
            0
            • P Offline
              P Offline
              phoff
              wrote on last edited by
              #6

              The link to the solution is broken

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved