Results 1 to 2 of 2

Thread: How did I disable auto-scrolling function in tree-view

  1. #1
    Join Date
    Feb 2007
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How did I disable auto-scrolling function in tree-view

    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 ?
    Attached Images Attached Images
    • File Type: jpg 1.jpg (11.6 KB, 2 views)
    • File Type: jpg 2.jpg (13.9 KB, 2 views)
    • File Type: jpg 3.jpg (11.8 KB, 2 views)

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: How did I disable auto-scrolling function in tree-view

    Try:
    Qt Code:
    1. treeView->setAutoScroll(false);
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

Similar Threads

  1. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  2. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.