May be you have to set Qt::ItemIsEnabled instead Qt::NoItemFlags for your top Level QTreeWidgetItem.