Summary: | item.grabToImage() does not work in a KQuickAddons::ConfigModule | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kdeclarative | Reporter: | Janet Blackquill <uhhadd> |
Component: | general | Assignee: | Marco Martin <notmart> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | kde, kdelibs-bugs, nate |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Janet Blackquill
2020-04-22 23:27:54 UTC
Looks like a Qt bug. We use QQuickWidget to embed QtQuick into a widget window which uses an offscreen window. if (!item->window()->isVisible()) { qmlWarning(item) << "grabToImage: item's window is not visible"; return nullptr; } I wonder if using QQuickRenderControl::renderWindowFor(item->window()) instad of item->window() directly here would work |