Results 1 to 2 of 2

Thread: No isSectionSelected on QHeaderView?

  1. #1
    Join Date
    Aug 2009
    Posts
    56
    Thanks
    14
    Thanked 1 Time in 1 Post

    Default No isSectionSelected on QHeaderView?

    tableView is a QTableView.

    There's a count() method, but no isSectionSelected or equivalent that I can find.

    Qt Code:
    1. for (int i=0; i < tableView->horizontalHeader()->count(); i++)
    2. {
    3. if (tableView->horizontalHeader()->isSectionSelected(i))
    4. {
    5. // Do stuff
    6. }
    7. }
    To copy to clipboard, switch view to plain text mode 

    Does anyone know how to query which sections are currently selected?

  2. #2
    Join Date
    Nov 2006
    Location
    Saudi Arabia
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    2
    Thanked 4 Times in 4 Posts

    Default Re: No isSectionSelected on QHeaderView?

    connect with this signal:

    Qt Code:
    1. QHeaderView::sectionClicked ( int logicalIndex );
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. QHeaderView and ProxyStyle
    By caduel in forum Qt Programming
    Replies: 1
    Last Post: 13th September 2008, 15:09
  2. QHeaderView -- diagonal headers?
    By vycke in forum Qt Programming
    Replies: 7
    Last Post: 29th April 2008, 00:54
  3. Replies: 2
    Last Post: 14th August 2007, 16:16
  4. QHeaderView as a banner
    By mclark in forum Qt Programming
    Replies: 1
    Last Post: 21st March 2007, 20:28
  5. Renumbering Row Headers of QHeaderView
    By mclark in forum Newbie
    Replies: 4
    Last Post: 11th September 2006, 16:04

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
  •  
Qt is a trademark of The Qt Company.