Results 1 to 3 of 3

Thread: i need your help about qlistview multi-selection

  1. #1
    Join Date
    Jul 2012
    Posts
    23
    Thanks
    3

    Question i need your help about qlistview multi-selection

    Qt Code:
    1. Wall = new QListView;
    2. Wall->setSelectionMode(QAbstractItemView::ExtendedSelection);
    To copy to clipboard, switch view to plain text mode 
    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!
    q1.png

    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!

  2. #2
    Join Date
    Jul 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: i need your help about qlistview multi-selection

    Hi!
    Try this:

    ui->listView->setSelectionRectVisible(false);

    hope it works!

  3. #3
    Join Date
    Jul 2012
    Posts
    23
    Thanks
    3

    Default Re: i need your help about qlistview multi-selection

    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.

    Qt Code:
    1. setFocusPolicy(Qt::NoFocus);
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. How to keep multi-selection in QTreeView?
    By lovehouye in forum Qt Programming
    Replies: 1
    Last Post: 9th April 2011, 23:58
  2. Multi Column selection from a Sqlite table
    By nagabathula in forum General Programming
    Replies: 34
    Last Post: 3rd January 2011, 16:50
  3. Can a QListView support multi-column?
    By wesley in forum Qt Programming
    Replies: 3
    Last Post: 7th March 2008, 09:00
  4. QListWidget multi selection
    By user in forum Qt Programming
    Replies: 1
    Last Post: 6th February 2008, 08:36
  5. Multi-selection Combo Box
    By EricF in forum Qt Programming
    Replies: 7
    Last Post: 7th November 2007, 08:15

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.