Results 1 to 2 of 2

Thread: QHeaderView sectionReleased(int)

  1. #1
    Join Date
    Nov 2008
    Posts
    183
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default QHeaderView sectionReleased(int)

    Am I the only one to find it quite odd QHeaderView has sectionPressed(int) and sectionClicked(int) but no sectionReleased(int)? The infuriating part is sectionClicked(int) gets emitted even when the user has not released the section making "press&hold" type functionality only implementable via subclassing.

    Qt 4.8.x

    Is that really the only work around?

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: QHeaderView sectionReleased(int)

    "Press & hold" is used when headers are movable, so this behavior is handled internally to the widget. You can always add an event filter on the header view instance to intercept the mouse events you want to modify if the signals don't suit your needs.

Similar Threads

  1. QHeaderView saveState()
    By waynew in forum Qt Programming
    Replies: 2
    Last Post: 26th December 2009, 15:46
  2. QHeaderView
    By waynew in forum Qt Programming
    Replies: 2
    Last Post: 25th December 2009, 20:42
  3. how to set up a QHeaderView editable?
    By iguanna in forum Qt Programming
    Replies: 3
    Last Post: 24th March 2008, 14:37
  4. QHeaderView
    By gyre in forum Qt Tools
    Replies: 1
    Last Post: 25th September 2007, 16:35
  5. subclassing QHeaderView
    By chemstar in forum Qt Programming
    Replies: 7
    Last Post: 22nd May 2006, 12:34

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.