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] Load image out of resource
Forum Updated to NodeBB v4.3 + New Features

[Solved] Load image out of resource

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 1.5k Views 2 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.
  • mrdebugM Offline
    mrdebugM Offline
    mrdebug
    wrote on last edited by mrdebug
    #1

    I have a qml text area with
    textFormat: Text.RichText
    Now I can set te text as html. I can load image from resource like this:
    text1.text+ "<br><img src=qrc:/Table.png><br>"
    But how can I load an image out of resource?

    Need programmers to hire?
    www.labcsp.com
    www.denisgottardello.it
    GMT+1
    Skype: mrdebug

    p3c0P 1 Reply Last reply
    0
    • mrdebugM mrdebug

      I have a qml text area with
      textFormat: Text.RichText
      Now I can set te text as html. I can load image from resource like this:
      text1.text+ "<br><img src=qrc:/Table.png><br>"
      But how can I load an image out of resource?

      p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @mrdebug If you mean loading image from the system then file:// should work with the complete file path.

      157

      1 Reply Last reply
      0
      • mrdebugM Offline
        mrdebugM Offline
        mrdebug
        wrote on last edited by
        #3

        Perfect!

        Need programmers to hire?
        www.labcsp.com
        www.denisgottardello.it
        GMT+1
        Skype: mrdebug

        T 1 Reply Last reply
        0
        • mrdebugM mrdebug

          Perfect!

          T Offline
          T Offline
          tarod.net
          wrote on last edited by
          #4

          @mrdebug Please mark the post as solved.

          "Individually, we are one drop. Together, we are an ocean."

          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