Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QML Image: Cannot open: qrc:/images/automatic_updates.png
QtWS25 Last Chance

QML Image: Cannot open: qrc:/images/automatic_updates.png

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 592 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.
  • A Offline
    A Offline
    a.toraby
    wrote on last edited by
    #1

    I have written these lines of code in main.qrc

    Image {
       source: "images/automatic_updates.png"
    }
    

    This works on desktop but when I deploy the application on Android the following error occurs:

     QML Image: Cannot open: qrc:/images/automatic_updates.png
    

    What should I do to use this resource in android device. Please don't suggest me to use assets directory, I strongly prefer to apply the the Qt Resource System as it is a cross platform solution.
    Thanks for your helps

    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