Summary: | Cannot use an IconItem as a source or maskSource for anything | ||
---|---|---|---|
Product: | [Frameworks and Libraries] libplasma | Reporter: | Nate Graham <nate> |
Component: | libplasmaquick | Assignee: | Marco Martin <notmart> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | CC: | kde |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Nate Graham
2018-10-12 00:06:46 UTC
Relevant API to do it natively is QSGTextureProvider *QQuickItem::textureProvider() const Never done it before, but it doesn't seem too difficult. We generate QSGTextures elsewhere in that same code; we just need to make this interim class. But in any case, what you're looking for is ShaderEffectSource which will work for any item(s). Not as performant as the above as it effectively renders then captures the content, but it's fine for small cases. ShaderEffectSource was just what I needed, thanks! ShaderEffectSource { id: renderedIcon visible: false sourceItem: icon } |