Results 1 to 2 of 2

Thread: QListWidget selection behavior

  1. #1
    Join Date
    Jan 2006
    Location
    Leiden, the Netherlands
    Posts
    43
    Thanks
    4
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default QListWidget selection behavior

    Hello,

    I have a question. On the windows platform, Win32 List Controls (multi selection) use to behave like this:

    - Left mouse click: select a list item
    - Left mouse click + shift: Select all items between previous selection and clicked item
    - Left mouse click + ctrl: Reverse selection of te clicked item

    Qt list behavior:
    - Left mouse click = ok
    - Left mouse click + shift = ok
    - Left mouse click + control behaves like Left mouse click + shift...

    Is this a bug or by design?

    Arthur

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,518 Times in 1,388 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QListWidget selection behavior

    The selection mode you are describing is called extended selection in Qt's terminology.
    See enum QAbstractItemView::SelectionMode for more detailed description.
    J-P Nurmi

  3. The following 2 users say thank you to jpn for this useful post:

    Arthur (31st May 2006), tpf80 (17th May 2007)

Similar Threads

  1. [SOLVED] QTreeView drawing selection with icons
    By Timewarp in forum Qt Programming
    Replies: 7
    Last Post: 7th February 2013, 08:52
  2. keypress while editing an item in QListWidget
    By Beluvius in forum Qt Programming
    Replies: 3
    Last Post: 4th April 2006, 10:56
  3. QSortFilterProxyModel signal and selection confusion
    By pascal123 in forum Qt Programming
    Replies: 1
    Last Post: 1st April 2006, 17:25
  4. [Qt4]: Adding centered items in QListWidget
    By Jojo in forum Qt Programming
    Replies: 4
    Last Post: 16th March 2006, 21:04
  5. QListWidget add QListWidgetItem
    By fellobo in forum Qt Programming
    Replies: 3
    Last Post: 20th February 2006, 20:37

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.