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?
Forum Updated to NodeBB v4.3 + New Features

How to display raw image data with qml?

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 3.7k 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.
  • L Offline
    L Offline
    learnsor
    wrote on 21 Jun 2013, 06:09 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 21 Jun 2013, 06:36 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 21 Jun 2013, 06:47 last edited by
        #3

        Thanks, it seems is what i need.

        1 Reply Last reply
        0

        3/3

        21 Jun 2013, 06:47

        • Login

        • Login or register to search.
        3 out of 3
        • First post
          3/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved