On Sonntag, 19. März 2017 13:09:55 CET Alexander Semke wrote:
> [...]
> What is being delayed here? I'm not quite comfortable with the fixed timer
> value and it doesn't work on my notebook for 0. Whatever is queued for
> processing here, how to wait until it's completely done?
> 
> void ProjectExplorer::setModel(AspectTreeModel* treeModel) {
>       m_treeView->setModel(treeModel);
>       //TODO: wait...
>       m_treeView->header()->resizeSections(QHeaderView::ResizeToContents);
> }

Argh... My fault. The model is empty (no content yet) when this function is 
called. I rewrote the code to call this resizeSections function only when the 
project is loaded (=model has content). All good now.


-- 
Alexander


_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to