Results 1 to 2 of 2

Thread: QTreeView autoresize and autoexpand

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2009
    Posts
    8
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question QTreeView autoresize and autoexpand

    Hello,

    In a program that I am making, there is a qtreeview used to show a directory tree, I have a few questions about the widget.

    1) Can I make the tree automatically expand to show a specific path (eg where the file currently in use is)?

    2) When more folders are opened in the view, the column does not expand to accommodate them (and no scroll bar appears), so the contents of folders lower in the tree are not visible unless you manually resize the column width. Is there anyway to make the column 'auto-resize' to accommodate more items?

    Thanks in advance.

    Scrasun
    Last edited by scrasun; 26th September 2009 at 16:05. Reason: spelling error

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.