Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-43406

grabToImage example not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.4.0
    • Fix Version/s: 5.4.1
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      Windows 7 64bits
    • Commits:
      87ac0d66abbe235e353fbe10dc864ebdc9904d41

      Description

      In the Qt 5.4 documentation of the QtQuick Item Item QML Type, the example of the grabToImage() method does not work.
      The save() method does not exist.
      But there is the SaveToFile() instead, see QQuickItemGrabResult.

      grabToImage
      // ...
          source.grabToImage(function(result) {
                                 result.save("something.png"); // save method does not exist
                             });
      

      Edit :
      Snippet can be found in the Item QML Type : http://doc.qt.io/qt-5/qml-qtquick-item.html#grabToImage-method

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            veshivas Venugopal Shivashankar
            Reporter:
            plishty Grégory L
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes