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

grabToImage example not working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.1
    • 5.4.0
    • Documentation
    • None
    • Windows 7 64bits
    • 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

            veshivas Venugopal Shivashankar
            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