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. Get QImage from QML Camera element
QtWS25 Last Chance

Get QImage from QML Camera element

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

    Good day, everyone.
    I'm doing some research with QML Camera element. For my purposes I have to do some manipulations with captured images (in C++ code). QML element Camera has slot onImageCaptured with preview argument that is url variable (in C++ code just QString). Trying to construct QImage from this url isn't successful.
    Next attempt was to use QPixmapCache. I supposed that pixmap cache contains appropriate Image by key which is get from onImageCaptured url parameter. But it doesn't...
    My question is: how to provide image captured by QML Camera element to C++ code to construct QImage?
    Thanks in advance for help.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      Grinchman
      wrote on last edited by
      #2

      Ive got answer on other Nokias discussion board: http://www.developer.nokia.com/Community/Discussion/showthread.php?229146-Get-QImage-from-QML-Camera-element&p=861971#post861971

      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