Hi all
How can we hide items in QListView.
For eg.
QListViewItem*item;
item->setText(1,"Directory");
Now I want to hide the text of column 1;
How can I?
Please reply with an example.
Thanx
merry
Hi all
How can we hide items in QListView.
For eg.
QListViewItem*item;
item->setText(1,"Directory");
Now I want to hide the text of column 1;
How can I?
Please reply with an example.
Thanx
merry
Thanx for your reply
But when I use this function
QListView::hideColumn(int column)
Then an error is generated that there is no matching function for call to `QListView::hideColumn(int).
Thanx
merry
Hi
Actually I am Working on Qt3.1 for Linux Operating System.And I think in this there is no function like this QListView::hideColumn().
Merry
Yes, the link is for Qt 3.3. But did you read it's notes anyway? It's just a convenience function which calls some other function (which is also mentioned there). Still if the convenience function was not yet introduced in 3.1, you can simulate the behavior by calling that other mentioned function.
void QListView::hideColumn ( int column )
Hides the column specified at column. This is a convenience function that calls setColumnWidth( column, 0 ).
Note: The user may still be able to resize the hidden column using the header handles. To prevent this, call setResizeEnabled(FALSE, column) on the list views header.
See also setColumnWidth().
J-P Nurmi
merry (23rd February 2007)
Bookmarks