Results 1 to 2 of 2

Thread: QTreeview last Column visibility

  1. #1
    Join Date
    Mar 2011
    Location
    Hyderabad
    Posts
    13
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question QTreeview last Column visibility

    Hi all,
    Can any one explain how to set last column of the QTreeview always visible.
    i tried it by removing horizontal scroll bar using this code but of no use
    // treeview->horizontalScrollBar()->setVisible(false);
    // treeview->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysO ff);

    with the above code i am able to remove the scrol bar but still column is hiding when i drag header section Handel.

    Thanks in Advance.
    Kiran Pechetti

  2. #2
    Join Date
    Mar 2010
    Posts
    63
    Thanks
    6
    Qt products
    Qt4 Qt/Embedded Qt Jambi
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: QTreeview last Column visibility

    I think it depends upon no of column.You can use set column width to set according to size of your requriment so that there would be no scroll

Similar Threads

  1. Rename a QTreeView->header() column??
    By killerwookie99 in forum Newbie
    Replies: 1
    Last Post: 15th August 2008, 21:19
  2. QTreeView Fixed column & QTableView
    By jpujolf in forum Qt Programming
    Replies: 4
    Last Post: 13th August 2008, 10:35
  3. Fixed Column in QTreeview
    By ormonde in forum Qt Programming
    Replies: 3
    Last Post: 12th May 2008, 08:49
  4. No delegate for 1 column in QTreeView
    By mace in forum Qt Programming
    Replies: 1
    Last Post: 15th February 2007, 11:55
  5. Setting one* column of QTreeView to be editable
    By forrestfsu in forum Qt Programming
    Replies: 2
    Last Post: 18th October 2006, 21:31

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.