qMRMLListWidget lists nodes of one type

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!

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