Results 1 to 2 of 2

Thread: QTableView selection problem on mouse release on scrollbar - Mac OS only.

  1. #1
    Join Date
    Apr 2012
    Location
    India.
    Posts
    88
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default QTableView selection problem on mouse release on scrollbar - Mac OS only.

    Dear All,
    I have overridden QTableView class and in which on mouse release event I am taking selected cells using selectedIndexes() function.
    My problem is on Mac OS only, when I drag on table view and releases mouse pointer on scrollbar though I can see selected cells in table view , selectedIndexes() function returns empty list and this happens on Mac only, I am using Mac 10.8.5.

    Please reply, if someone has any idea about this.

    Thank you,
    Best Regards

  2. #2
    Join Date
    Apr 2012
    Location
    India.
    Posts
    88
    Thanked 8 Times in 8 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QTableView selection problem on mouse release on scrollbar - Mac OS only.

    Hi All,
    I just found a workaround for the above problem.
    I have inherited a new class from QTableView class and in it's mouseMoveEvent handler, Every time selection changes, I stored current selected cell indexes list in class member variable and it works for me.

Similar Threads

  1. Replies: 1
    Last Post: 13th February 2012, 15:54
  2. qtableview extended selection mode problem
    By hvengel in forum Qt Programming
    Replies: 0
    Last Post: 1st November 2011, 21:28
  3. QTableView - alignment/selection problem
    By Nesbitt in forum Qt Programming
    Replies: 7
    Last Post: 30th November 2009, 02:37
  4. QTableView selection problem
    By aiprober in forum Qt Programming
    Replies: 12
    Last Post: 9th June 2008, 11:55
  5. problem with mouse release on the border, help me!
    By dungsivn in forum Qt Programming
    Replies: 1
    Last Post: 25th June 2007, 08:16

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.