Quote Originally Posted by truefusion View Post
i can't get a complete directory listing from the file system model the first time around.
Because you are calling the code too early. Qt models tell you when something changes in them and you either have to react on each of the changes of detect when the model stops signalling you that it is changing. Of course nothing guarantees that it will not change a second later but you can't solve it with resizeColumnToContents() anyway That's why we have QHeaderView::ResizeToContents resize mode