PDA

View Full Version : i need your help about qlistview multi-selection



melody:p
1st August 2012, 08:10
Wall = new QListView;
Wall->setSelectionMode(QAbstractItemView::ExtendedSelect ion);

I can't speak english well... sorry..

I developing some software using qt listview.
I changed listview selectionmode to muliselection mode.
and suddenly appear dotline shown by focus-indicator(??) like this!
8079

I want to remove this dotline but i don't know how to do..

and I wonder how to know that items is selected by signal..
signal clicked() and pressed() is occur just when i click item..
I want know signal occured when I draw rectangle using mouse for multiselection.

please help me and i hope you understand my english....
thank you!

DavsX
1st August 2012, 09:57
Hi!
Try this:

ui->listView->setSelectionRectVisible(false);

hope it works!

melody:p
2nd August 2012, 09:42
Thankyou for you're answer.
but I not to say selection-rect drawing by mouse, i say to rect drawn by dot-line.
I solved it using this code.



setFocusPolicy(Qt::NoFocus);