In my program, I use a treeview to show my items.
If I add too many items into my treeview, it will work as:
If there is too many items, the treeview will auto have a verticality scrollbar.
But if one item is too long, why do not the treeview auto have a horizontal scrollbar?
Some net-friend told me
It works. But before this code, I doulbe clicked the treeview's item ,it will quick expand.I think it is default QHeaderView behaviour. To change it try something like
...->header()->setStretchLastSection
...->header()->setResizeMode(QHeaderView::ResizeToContents);
After add this code, I found it expand slowly very much.
Each item has about 100 children.
Bookmarks