Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Screenshot from a component in qml
Forum Updated to NodeBB v4.3 + New Features

Screenshot from a component in qml

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 7.4k 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.
  • M Offline
    M Offline
    mehrdad
    wrote on last edited by
    #1

    hello,i want to have a screen shot of a component as a picture...for example i have a text and an image in one rectangle and i want a picture from that rectangle including that picture and text...
    please don't tell me about general screen shot...this question is just about one component....
    can u help me?
    thanks...

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mandragora
      wrote on last edited by
      #2

      Hi there,
      have you managed to achieve what you were asking ?
      I need exactly the same.

      Thanks a lot,

      Ben

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mandragora
        wrote on last edited by
        #3

        Hi there,
        have you managed to achieve what you were asking ?
        I need exactly the same.

        Thanks a lot,

        Ben

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mehrdad
          wrote on last edited by
          #4

          not yet...

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mehrdad
            wrote on last edited by
            #5

            not yet...

            1 Reply Last reply
            0
            • raven-worxR Offline
              raven-worxR Offline
              raven-worx
              Moderators
              wrote on last edited by
              #6

              C++: "QQuickItem::grabToImage()":http://doc.qt.io/qt-5/qquickitem.html#grabToImage
              QML: "grabToImage()":http://doc.qt.io/qt-5/qml-qtquick-item.html#grabToImage-method

              Note: These methods are available since Qt 5.4.
              In case you want to save the image to a file the "docs are wrong":https://bugreports.qt.io/browse/QTBUG-43406
              Instead of calling save() on the result object you need to call saveToFile()

              --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
              If you have a question please use the forum so others can benefit from the solution in the future

              1 Reply Last reply
              2
              • raven-worxR Offline
                raven-worxR Offline
                raven-worx
                Moderators
                wrote on last edited by
                #7

                C++: "QQuickItem::grabToImage()":http://doc.qt.io/qt-5/qquickitem.html#grabToImage
                QML: "grabToImage()":http://doc.qt.io/qt-5/qml-qtquick-item.html#grabToImage-method

                Note: These methods are available since Qt 5.4.
                In case you want to save the image to a file the "docs are wrong":https://bugreports.qt.io/browse/QTBUG-43406
                Instead of calling save() on the result object you need to call saveToFile()

                --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                If you have a question please use the forum so others can benefit from the solution in the future

                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