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

QQuickImageProvider complete example

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

    Hello everyone!
    I'm really new in qt and qml. I try to learn this a bit, but I have some problem now. I'm trying to get access to qml Image object from my c++ code and set an image into it. I was trying to use examples from this "example topic":http://qt-project.org/forums/viewthread/29227. Only thing I could get is and random pattern based on image I want to load.

    If somebody could share with me the simplest example which shows how to set an image to qml Image object from c++ class. Image is of course an QImage object.

    Example could look like this:

    1. In c++: read image from file to QImage object
    2. Set it to qml Image object and show it on screen.

    I just can't get an idea what is behind the QtQuickImageProvider object :/

    Any help will be appreaciated :)

    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