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. How to display raw image data with qml?

How to display raw image data with qml?

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 3.7k 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.
  • L Offline
    L Offline
    learnsor
    wrote on last edited by
    #1
    • My image data is NOT located in any url. Instead It's located in memory and I don't want to save it to disk forsake of performance. How to display it in qml? by means of Canvas?
    1 Reply Last reply
    0
    • J Offline
      J Offline
      Jens
      wrote on last edited by
      #2

      You can create a custom image provider:

      http://qt-project.org/doc/qt-5.0/qtquick/qquickimageprovider.html

      After this you should be able to use your custom images like any other images by passing a custom url.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        learnsor
        wrote on last edited by
        #3

        Thanks, it seems is what i need.

        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