PDA

View Full Version : QTreeWidget Issue



vishal.chauhan
12th February 2007, 14:01
Hi All,

I m using Qt4.2.2 on my Intel Mac.

I m using a QTreeWidget in my project.

1. I have enabled the Sorting Enabled and when I insert the Item in the TreeWidget it is showing Item in Desending Order but I want them to Display in the Assending Order.

2. I want to Increase the Row height of the TreeWidget.


If any one know that plz tell me.

Thanks.

jpn
12th February 2007, 14:25
1. I have enabled the Sorting Enabled and when I insert the Item in the TreeWidget it is showing Item in Desending Order but I want them to Display in the Assending Order.

QTreeWidget::sortItems(int column, Qt::SortOrder order)



2. I want to Increase the Row height of the TreeWidget.

Set sufficient size hints for items via QTreeWidgetItem::setSizeHint(int column, const QSize& size) or override QAbstractItemView::sizeHintForRow(int row).