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

grabToImage example not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.4.1
    • 5.4.0
    • Documentation
    • None
    • Windows 7 64bits
    • 87ac0d66abbe235e353fbe10dc864ebdc9904d41

      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

        For Gerrit Dashboard: QTBUG-43406
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes