Did you set the number of columns for QTreeWidget?