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. Is it impossible main.qml in qml.qrc access other qrc image resource?
Forum Updated to NodeBB v4.3 + New Features

Is it impossible main.qml in qml.qrc access other qrc image resource?

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 932 Views 1 Watching
  • 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.
  • B Offline
    B Offline
    bstill
    wrote on last edited by
    #1

    !http://i.imgur.com/fjrQQwN.png()!

    Hi, all

    recent qt creator generates <main.qml> file in resource file 'qml.qrc' when <Qt Quick Applicaiton> project.

    by some reason, if I add <icon.qrc> resource file and add icon in it,

    it seems to be can't access icon resouce in <icon.qrc>

    I can't access using "qrc:/icon/some.png" url.

    Is qml resource file (icon..etc) must be exists in qml.qrc?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Try with ":/icon/some.png", or change the prefix inside icon.qrc to be the same as in qml.qrc.

      (Z(:^

      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