# Vectoral Screenshots

**URL:** <https://discuss.kde.org/t/vectoral-screenshots/47413>\
**Category:** Brainstorm\
**Tags:** spectacle\
**Created:** [May 30, 2026, 11:30am UTC](https://discuss.kde.org/t/vectoral-screenshots/47413 "2026-05-30T11:30:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![beedellroke](https://discuss.kde.org/user_avatar/discuss.kde.org/beedellroke/32/29718_2.png) [@beedellroke](https://discuss.kde.org/u/beedellroke)\
**Post date:** [May 30, 2026, 11:30am UTC](https://discuss.kde.org/t/vectoral-screenshots/47413/1 "2026-05-30T11:30:07Z")

</div>

Occasionally, I want to screenshot a window that is comprised solely of Qt interface elements, such that it can be rendered on a presentation. For this, the best solution for me is to render a VM at 4K, and screenshot its windows. That is painful.

Instead, when I capture a screenshot, could the compositor not act as Print To PDF does, insofar as it captures interface elements as vectors, leaving solely the few bitmaps that might be rendered within the screenshot (wallpapers, videos in YouTube) as such?

I am not the first to ask:

> **[outputting captured screenshot to svg format?](https://groups.google.com/a/chromium.org/g/headless-dev/c/U3QtlDyR28c/m/b5SxJ68mBAAJ#c2:~:text=now%20currently%20chrome%20supports%20output%20screenshot%20to%20png%2C%20jpg%20%26%20pdf%2C%20are%20there%20any%20ways%20to%20output%20to%20svg%20format%20or%20any%20plans%20to%20add%20the%20feature%3F)**

---

<div class="post-metadata">

**Author:** ![jinliu](https://discuss.kde.org/user_avatar/discuss.kde.org/jinliu/32/2414_2.png) [@jinliu](https://discuss.kde.org/u/jinliu)\
**Post date:** [May 30, 2026, 12:04pm UTC](https://discuss.kde.org/t/vectoral-screenshots/47413/2 "2026-05-30T12:04:53Z")

</div>

No. The compositor receives pixmaps from apps, one for each window (“surface”).

---

<div class="post-metadata">

**Author:** ![beedellroke](https://discuss.kde.org/user_avatar/discuss.kde.org/beedellroke/32/29718_2.png) [@beedellroke](https://discuss.kde.org/u/beedellroke)\
**Post date:** [May 30, 2026, 2:49pm UTC](https://discuss.kde.org/t/vectoral-screenshots/47413/3 "2026-05-30T14:49:31Z")

</div>

@jinliu, so, would it need to be toolkit-specific?

---

<div class="post-metadata">

**Author:** ![jinliu](https://discuss.kde.org/user_avatar/discuss.kde.org/jinliu/32/2414_2.png) [@jinliu](https://discuss.kde.org/u/jinliu)\
**Post date:** [June 1, 2026, 4:14am UTC](https://discuss.kde.org/t/vectoral-screenshots/47413/4 "2026-06-01T04:14:26Z")

</div>

I think it would be impractical for most toolkits (except Electron, probably, since browsers can already generate PDF).

---

<div class="post-metadata">

**Author:** ![beedellroke](https://discuss.kde.org/user_avatar/discuss.kde.org/beedellroke/32/29718_2.png) [@beedellroke](https://discuss.kde.org/u/beedellroke)\
**Post date:** [June 1, 2026, 12:09pm UTC](https://discuss.kde.org/t/vectoral-screenshots/47413/5 "2026-06-01T12:09:07Z")

</div>

> [@jinliu](#):
>
> browsers can already generate PDF

@jinliu, that was actually what prompted me to ask:

> <https://superuser.com/questions/737386/how-can-i-print-a-large-web-page-to-a-single-page-pdf-with-custom-dimensions/1938031#1938031>

* * *

> [@jinliu](#):
>
> it would be impractical for most toolkits

Because I now know that it would be difficult, what’s of more interest is whether something inherently prevents it, like the QStyles or QQuickStyles themselves being raster-based, etcetera. Considering that Breeze’s Qt 6 QStyle and QQuickStyle lack bitmap components, for they appear to render at any scale, and GTK 4 and Union are CSS-based, I’ve asked Qt and GNOME:

> **[Whether Qt Can Render Its Interface To A Vector Image Format](https://forum.qt.io/topic/164736/whether-qt-can-render-its-interface-to-a-vector-image-format#:~:text=Vector%20Image%20Format-,Whether%20Qt%20Can%20Render%20Its%20Interface%20To%20A%20Vector%20Image%20Format,-Unsolved)**
>
> Occasionally, I want to screenshot my applications in a way that is scalable. Because current compositors appear to exclusively render pixmaps, this isn't po...

> **[Whether GTK Can Render Its Interface To A Vector Image Format](https://discourse.gnome.org/t/whether-gtk-can-render-its-interface-to-a-vector-image-format/35263#:~:text=Whether%20GTK%20Can%20Render%20Its%20Interface%20To%20A%20Vector%20Image%20Format)**
>
> Occasionally, I want to screenshot my applications in a way that is scalable. Because current compositors appear to exclusively render pixmaps, this isn’t possible at that level. Consequently, I am hoping that GTK 4 may be able to, not least...

---

<div class="post-metadata">

**Author:** ![jinliu](https://discuss.kde.org/user_avatar/discuss.kde.org/jinliu/32/2414_2.png) [@jinliu](https://discuss.kde.org/u/jinliu)\
**Post date:** [June 2, 2026, 2:28am UTC](https://discuss.kde.org/t/vectoral-screenshots/47413/6 "2026-06-02T02:28:13Z")

</div>

> [@beedellroke](#):
>
> whether something inherently prevents it

I don’t think it’s “inherently” impossible. Just most UI toolkits are designed to render to screen only. So I said “impractical” because you need a major rewrite of the toolkit.

---

<div class="post-metadata">

**Author:** ![beedellroke](https://discuss.kde.org/user_avatar/discuss.kde.org/beedellroke/32/29718_2.png) [@beedellroke](https://discuss.kde.org/u/beedellroke)\
**Post date:** [June 2, 2026, 11:22am UTC](https://discuss.kde.org/t/vectoral-screenshots/47413/7 "2026-06-02T11:22:07Z")

</div>

Actually, @jinliu, I’ve since managed to achieve it for QWidgets, per the Qt Forum thread. ~~GTK doesn’t appear to support it,~~ though, ~~and~~ I don’t know whether QML or any of the more exotic QWidget-compatible, but OS-provided, elements shall.

The most significant shame is that KWin (and Mutter) don’t appear to allow a user to ask all visible windows’ owners to output, meaning that I would need to inject the code per-application, even from the same toolkit. Perhaps, it’s a Wayland-imposed restriction.

---

<div class="post-metadata">

**Author:** ![jinliu](https://discuss.kde.org/user_avatar/discuss.kde.org/jinliu/32/2414_2.png) [@jinliu](https://discuss.kde.org/u/jinliu)\
**Post date:** [June 2, 2026, 11:44am UTC](https://discuss.kde.org/t/vectoral-screenshots/47413/8 "2026-06-02T11:44:33Z")

</div>

Impressive. Never know they are capable of this.
