# How do I save the widgets

**URL:** https://discourse.vtk.org/t/how-do-i-save-the-widgets/9014
**Category:** Web
**Created:** [July 26, 2022, 3:34am UTC](https://discourse.vtk.org/t/how-do-i-save-the-widgets/9014 "2022-07-26T03:34:07Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![finetjul](https://discourse.vtk.org/user_avatar/discourse.vtk.org/finetjul/32/154_2.png) [@finetjul](https://discourse.vtk.org/u/finetjul)
#### Post date: [July 26, 2022, 5:57am UTC](https://discourse.vtk.org/t/how-do-i-save-the-widgets/9014/2 "2022-07-26T05:57:26Z")

</div>

Widgets are not serializable for now.

But more than saving the widgets, it seems that what you want is to save the underlying volume (i.e. vtkImageData) that contains all the painted strokes.

You can use vtkXMLImageDataWriter to do that.

Hth,  
Julien.

---

_[View the full topic](https://discourse.vtk.org/t/how-do-i-save-the-widgets/9014)._
