PDA

View Full Version : How did I disable auto-scrolling function in tree-view



alfa_wu
28th September 2007, 08:19
Hi,
I occur some problem when running QT example "simpletreemodel". (Under ~examples/itemviews/simpletreemodel)
1. Running "simpletreemodel" and shrink height of the form. (1.jpg)
2. Click item "Form E" in the form. (2.jpg)
3. The item "Form E" will move upper and be highlight. (3.jpg)

You can see the position of "Form E" has been changed.

I wnated the item "Form E" does not changed its position, or does not move.
How do I do ?

jpn
28th September 2007, 08:31
Try:

treeView->setAutoScroll(false);