Results 1 to 2 of 2

Thread: Highlightig a row in QTableView

  1. #1
    Join Date
    Apr 2011
    Posts
    67
    Thanks
    22
    Thanked 5 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Highlightig a row in QTableView

    I have made an application and it has a QtableView and some forms.I have used QDataWidgetMapper.I want to move the row highlight everytime i click next or previous so that the highlight is on the currently selected item.

    How can i do that.
    Last edited by thefatladysingsopera; 29th July 2011 at 07:34.

  2. #2
    Join Date
    Jun 2011
    Location
    Chennai, India
    Posts
    30
    Thanks
    13
    Thanked 6 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Highlightig a row in QTableView

    Use QTableView::selectRow(int row) if you keep track of the row number

Similar Threads

  1. QTableView and QLineEdit OUTSIDE of QTableView, like Excel
    By JoZCaVaLLo in forum Qt Programming
    Replies: 10
    Last Post: 13th May 2011, 13:20
  2. Get the value from QTableview
    By umulingu in forum Qt Programming
    Replies: 2
    Last Post: 8th January 2010, 09:55
  3. Replies: 2
    Last Post: 26th November 2009, 04:45
  4. QTableView
    By br73 in forum Qt Programming
    Replies: 4
    Last Post: 16th February 2009, 19:32
  5. QTableView - Add Row
    By maxpower in forum Qt Programming
    Replies: 1
    Last Post: 24th November 2006, 18:18

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.