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 convert QML Object to QImage ?
Forum Update on Monday, May 27th 2025

How to convert QML Object to QImage ?

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.3k 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.
  • S Offline
    S Offline
    SlimIT
    wrote on 8 Jun 2013, 01:33 last edited by
    #1

    Hi,

    How can i get a QImage of a child QML Object ?

    Thank you.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Alek Śmierciak
      wrote on 8 Jun 2013, 09:54 last edited by
      #2

      Hello,

      what is the purpose of such feat? If you want to print your view, then take a look at either "QPrinter":http://qt-project.org/doc/qt-5.0/qtprintsupport/qprinter.html or "QQuickWindow::grabWindow() method":http://qt-project.org/doc/qt-5.0/qtquick/qquickwindow.html#grabWindow.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SlimIT
        wrote on 8 Jun 2013, 12:05 last edited by
        #3

        Yes i want to print it.

        I know how to use QPrinter but i want the QImage of a child QML Item of my view and not all the view.

        Thank You.

        1 Reply Last reply
        0

        1/3

        8 Jun 2013, 01:33

        • Login

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