Results 1 to 2 of 2

Thread: QTableView Signal when nothing is selected

  1. #1
    Join Date
    May 2010
    Location
    Pretoria, South Africa
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QTableView Signal when nothing is selected

    Hi there!

    I'm using a QWizardPage containing a QTableView. I need to connect a QTableView signal to a method called isSelected() (which checks whether anything is selected in the table view). In turn, isSelected emits the completed() signal when a selection is made in the table view.

    My problem is this: I need to gray out the finish button if nothing is selected in the table view. In order to achieve this, I need to know when a user de-selects all items in the QTableView. None of the standard signals (Pressed(), Clicked(), etc) emit anything when a selection is de-selected.

    Please help!

    Thanks for your time!

    Regards,
    Dirk

  2. #2
    Join Date
    Sep 2008
    Location
    Poland
    Posts
    80
    Thanks
    4
    Thanked 5 Times in 4 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: QTableView Signal when nothing is selected

    Check if QItemSelectionModel::selectionChanged () suits you Brother

Similar Threads

  1. Remove selected rows from a QTableView
    By niko in forum Qt Programming
    Replies: 4
    Last Post: 3rd March 2016, 12:49
  2. QTableView get selected row
    By raphaelf in forum Qt Programming
    Replies: 8
    Last Post: 12th July 2013, 03:35
  3. Deleting selected row from a QTableView
    By Ferric in forum Newbie
    Replies: 9
    Last Post: 15th January 2010, 08:32
  4. QTableView only showing data when row selected
    By Banjo in forum Qt Programming
    Replies: 2
    Last Post: 27th January 2009, 05:34
  5. iterating selected rows in a qtableview
    By JeanC in forum Qt Programming
    Replies: 2
    Last Post: 19th January 2008, 14:29

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.