PDA

View Full Version : help! some questions about QListView



lum
4th August 2006, 12:55
hello,
1) how to display string completely in an QListView?
for example, if the string is "Qt Centre Forum"
My program display " Qt Cent..."

2) how to hide the column bar?
My program display like this:
column1 | column2
-----------------------
string1 | string2

I want it like this:
string1 | string2


thank you for your help!



I am so sorry, I have another problem about this widget:
3) I want to use key "Up" and "Down" to select items in QListView,
if I use mouse, it emit SIGNAL clicked( QListViewItem *);
but if I use keyboard, what signal it emit?

jacek
4th August 2006, 13:16
how to display string completely in an QListView?
Try:
listView->setColumnWidthMode ( 0, QListView::Maximum );


how to hide the column bar?
Try:
listView->header()->hide();

Chicken Blood Machine
4th August 2006, 17:45
3) I want to use key "Up" and "Down" to select items in QListView,
if I use mouse, it emit SIGNAL clicked( QListViewItem *);
but if I use keyboard, what signal it emit?

selectionChanged()