Results 1 to 6 of 6

Thread: Scroll-to-column in QTreeWidget?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Dec 2009
    Posts
    49
    Thanks
    3
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Question Scroll-to-column in QTreeWidget?

    I have a QTreeWidget displaying a hierarchy of nodes. I'm successfully using QTreeWidget::scrollToItem() to make sure a given item is visible, however sometimes the item is so far on the right (being so deep in the hierarchy) that one needs to scroll the tree widget horizontally to make it actually appear. Is there a way (or a trick) to make a given column (0 in my case) of a given item visible, a scrollToColumn() kind of thing?
    Last edited by dictoon; 21st May 2013 at 09:46.

Similar Threads

  1. Replies: 5
    Last Post: 10th October 2011, 13:26
  2. QtreeWidget horizon scroll
    By weixj2003ld in forum Qt Programming
    Replies: 1
    Last Post: 20th April 2009, 10:00
  3. QTreeWidget scroll only one column
    By nina1983 in forum Qt Programming
    Replies: 3
    Last Post: 13th August 2008, 15:07
  4. QTreeWidget won't scroll horizontally
    By JimDaniel in forum Qt Programming
    Replies: 3
    Last Post: 23rd January 2008, 08:53
  5. set Column Width in QTreeWidget?
    By vishal.chauhan in forum Qt Programming
    Replies: 1
    Last Post: 25th June 2007, 08:12

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.