문제

I developed a Qt tree with 1,000,000 items under a node. The code is similar to its simple tree model example at http://qt-project.org/doc/qt-5.0/qtwidgets/itemviews-simpletreemodel.html .

When I click key "End", it takes 15 seconds to go to the last item. Any way to make it faster?

도움이 되었습니까?

해결책

Set uniformRowHeights to true. Then the row height is calculated only once, instead of million times, making the QTreeView much faster.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top