PDA

View Full Version : QTreeview last Column visibility



kiran p
3rd May 2011, 08:22
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::ScrollBarAlwaysOf f);

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.

moh.gup@gmail.com
3rd May 2011, 10:25
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