QQuickWidget: grabToImage: item's window is not visible
问题 I'm having a problem when I try to use Item::grabToImage() qml method. No matter which item I point to, it always says the following error: grabToImage: item's window is not visible I tried using the root/toplevel Item named rect too, but it didnt work. My goal: I want to capture a rectangle sized image with the map tile and polygon draw on it Below there's a minimal reproducible example import QtQml 2.2 import QtLocation 5.9 import QtPositioning 5.9 import QtQuick 2.0 import QtQuick.Controls