Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
5.5.1, 5.6.0
-
None
Description
android device
I can get a normal image by call QQuickWindow::grabWindows() at most devices,but only at a few device I gotted a black image.
why? i think android device cause this problem, but the greater reason is Qt.
a demo in attachment. you can check it.
void ALGrabber::grabPicture(QQuickWindow *w)
{
// emit sigSharePicture(w->grabWindow());
QImage image = w->grabWindow();
QString savePath = "/sdcard/temppp.png";
QDir dir = QFileInfo(savePath).absoluteDir();
if(!dir.exists())
image.save(savePath);
}
Attachments
Issue Links
- duplicates
-
QTBUG-53083 [Android]Â QQuickWindow::grabWindow() will return a black image
- Closed