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. QML Image: Unable to open
Qt 6.11 is out! See what's new in the release blog

QML Image: Unable to open

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 3.2k 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.
  • T Offline
    T Offline
    tattoo
    wrote on last edited by
    #1

    Hi all,

    In one of my past thread i was asking about how i can list applications in Nokia N9 i was successfully able to do that and i was also able to get the icons for the applications.

    But now when i assign the image path to Image Component source property, that gives me error

    QML Image: Cannot open: file:///usr/share/icons/hicolor/80x80/apps/callrecorder.png

    but if i directly try to test the image like:

    Code:
    @
    Image{
    source:"/usr/share/icons/hicolor/80x80/apps/callrecorder.png"
    }
    @
    This works without any problem. why image is adding file:/// to my path ??

    can anybody tell me what wrong i am doing here ??

    [Edit: Wrapped code in @ tags; mlong]

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

      Can you show an example of how you're assigning the image path to the Image Component source property?

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      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