Results 1 to 5 of 5

Thread: Multi-selection QTreeWidget with CRTL and without mouse

  1. #1
    Join Date
    Oct 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Multi-selection QTreeWidget with CRTL and without mouse

    Hi guys,

    i want know if is possible in my QTreeWidget i has multi-selection items only if I make key combinations. For example CTR+MOUSE.

    sorry my poor English xD

    Best regards,
    8080205

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Multi-selection QTreeWidget with CRTL and without mouse

    The title of your post is contradictory to the content of your post -- you want to select thigs with or without a mouse?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Multi-selection QTreeWidget with CRTL and without mouse

    I think* we have a QTreeWidget with QAbstractItemView::MultiSelection mode but the OP wants items to be toggled by mouse clicks only if the mouse is used in conjunction with another key (Control in this case). Or... the OP may just want ExtendedSelection.

    * A dangerous, and often misleading pursuit

  4. #4
    Join Date
    Oct 2012
    Posts
    6
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Multi-selection QTreeWidget with CRTL and without mouse

    Thanks a lot everyone. My problem is resolved.

    Best Regards,

    8080205

  5. #5
    Join Date
    Jun 2013
    Posts
    6
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Multi-selection QTreeWidget with CRTL and without mouse

    Hi 8080205,

    Could you please let me know how you have solved your problem.

Similar Threads

  1. i need your help about qlistview multi-selection
    By melody:p in forum Qt Programming
    Replies: 2
    Last Post: 2nd August 2012, 08:42
  2. How to keep multi-selection in QTreeView?
    By lovehouye in forum Qt Programming
    Replies: 1
    Last Post: 9th April 2011, 22:58
  3. Multi Column selection from a Sqlite table
    By nagabathula in forum General Programming
    Replies: 34
    Last Post: 3rd January 2011, 15:50
  4. QListWidget multi selection
    By user in forum Qt Programming
    Replies: 1
    Last Post: 6th February 2008, 07:36
  5. Multi-selection Combo Box
    By EricF in forum Qt Programming
    Replies: 7
    Last Post: 7th November 2007, 07:15

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.