Results 1 to 2 of 2

Thread: Help with QTableView row selection

  1. #1
    Join Date
    Oct 2009
    Location
    NJ, USA
    Posts
    9
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Help with QTableView row selection

    I have a QTableView with several columns. For column 1 I use a custom delegate. I set selection behavior as:

    ui.tableView->setSelectionBehavior(QAbstractItemView::SelectRow s);

    so that when cell is clicked the whole row is selected. This works ok if I click any cell, except for those belonging to a column 1 (where I use custom delegate). Can anyone suggest how this can be fixed? Is there something that needs to be added to the custom delegate to make selection work as I want? I googled this problem and I've seen someone mentioning similar issue, but no solution was suggested.

    Any help would be greatly appreciated.

  2. #2
    Join Date
    Oct 2009
    Location
    NJ, USA
    Posts
    9
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Help with QTableView row selection

    Please, disregard this question. There was some custom code that was causing problem here.

Similar Threads

  1. Replies: 2
    Last Post: 26th November 2009, 04:45
  2. QTableView, no selection rectangle
    By alisami in forum Qt Programming
    Replies: 13
    Last Post: 25th December 2008, 19:50
  3. cell selection in QTableView
    By user in forum Qt Programming
    Replies: 3
    Last Post: 26th May 2008, 01:01
  4. QTableView Row Selection
    By ToddAtWSU in forum Qt Programming
    Replies: 8
    Last Post: 12th December 2007, 21:27
  5. QTableView row selection
    By davemar in forum Qt Programming
    Replies: 2
    Last Post: 5th December 2007, 14:39

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.