Any QWidget without a parent is a top level widget eg. a "window". QAbstractItemView has several signals you could act upon. When do you exactly want to show the window? What is it supposed to contain?