# qMRMLListWidget lists nodes of one type

**URL:** https://discourse.slicer.org/t/qmrmllistwidget-lists-nodes-of-one-type/19490
**Category:** Support
**Tags:** qt
**Created:** [September 3, 2021, 4:40am UTC](https://discourse.slicer.org/t/qmrmllistwidget-lists-nodes-of-one-type/19490 "2021-09-03T04:40:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![wabwan25](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@wabwan25](https://discourse.slicer.org/u/wabwan25)
#### Post date: [September 3, 2021, 4:40am UTC](https://discourse.slicer.org/t/qmrmllistwidget-lists-nodes-of-one-type/19490/1 "2021-09-03T04:40:30Z")

</div>

I use qtdesigner to create a list widget to list model nodes in the scene, then a user can select multiple items for process. I use qMRMLListWidget, however, the function setMRMLScene(vtkMRMLScene\*) lists all the nodes. How can I configure the widget to only show one type of nodes? The class has very limited functions, how can i get selected nodes in the list? Any suggestion to implement multiple selection of nodes of one type? Thank you very much!

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [September 3, 2021, 4:55am UTC](https://discourse.slicer.org/t/qmrmllistwidget-lists-nodes-of-one-type/19490/2 "2021-09-03T04:55:38Z")

</div>

qMRMLListWidget does not support filtering by node type. Probably you want to use a qMRMLNodeComboBox instead.
