Results 1 to 5 of 5

Thread: QAbstractItemView selection behaviour issue

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 541 Times in 521 Posts

    Default Re: QAbstractItemView selection behaviour issue

    I am afraid this is not correct. You must determine the modifier keys in the mouse event, with QMouseEvent::modifiers().

    regards

  2. #2
    Join Date
    Mar 2006
    Posts
    142
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    8
    Thanked 1 Time in 1 Post

    Default Re: QAbstractItemView selection behaviour issue

    Quote Originally Posted by marcel View Post
    I am afraid this is not correct. You must determine the modifier keys in the mouse event, with QMouseEvent::modifiers().

    regards
    Thanks for the tips, it is more elegant and easier to do like this BUT the problem was not here since my way of detecting ctrl key press prior to clicking on an item works too (I printed the value of ctrl_key to check it of coursee) so the clear flag is off and I would expect that the already selected items remain selected, which is not the result I obtain.
    Any help?

Similar Threads

  1. QTable Selection Issue
    By ToddAtWSU in forum Qt Programming
    Replies: 3
    Last Post: 6th February 2007, 13: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
  •  
Qt is a trademark of The Qt Company.