Results 1 to 3 of 3

Thread: Select entire row in QTableWidget, programmatically

  1. #1
    Join Date
    Aug 2009
    Posts
    140
    Thanks
    22
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Select entire row in QTableWidget, programmatically

    Hi,

    QTableWidget::setCurrentCell lets me select a particular cell from within the program, but I'd like to select an entire row--is there a way to do this? Thanks--

    Matt

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Select entire row in QTableWidget, programmatically

    please note that "current" and "selection" are two different things.

    see QTableView::selectRow()

  3. The following 2 users say thank you to caduel for this useful post:

    MarkoSan (19th August 2014), MattPhillips (25th November 2009)

  4. #3
    Join Date
    Aug 2009
    Posts
    140
    Thanks
    22
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Select entire row in QTableWidget, programmatically

    Wow, take a peek up the inheritance hierarchy, what a concept! Thank you!

    Matt

Similar Threads

  1. Replies: 1
    Last Post: 23rd October 2009, 22:48
  2. Replies: 6
    Last Post: 5th June 2009, 09:38
  3. QTableWidget massive select -> massive signals
    By zarkzervo in forum Qt Programming
    Replies: 0
    Last Post: 16th March 2009, 14:01
  4. QTableWidget row select
    By nowire75 in forum Newbie
    Replies: 4
    Last Post: 23rd December 2007, 18:59
  5. Select columns from a QTableWidget
    By toglez in forum Qt Programming
    Replies: 10
    Last Post: 7th October 2007, 15:15

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.