Results 1 to 4 of 4

Thread: QTreeWidget Horizontal header double click event???

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Wiki edits
    5

    Default Re: QTreeWidget Horizontal header double click event???

    What's about the signal QHeaderView::sectionDoubleClicked()?

  2. The following user says thank you to Lykurg for this useful post:

    deepal_de (6th June 2011)

  3. #2
    Join Date
    Jan 2011
    Location
    Sri Lanaka
    Posts
    64
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60
    Thanks
    39

    Default Re: QTreeWidget Horizontal header double click event???

    Thanks
    answer
    Qt Code:
    1. // pTee is the QTreeWidget
    2.  
    3. bConnect = connect( pTree->header(), SIGNAL( sectionDoubleClicked(int) ), this, SLOT( treeHeaderDoubleClick(int) ) );
    4.  
    5. treeHeaderDoubleClick(int)
    6. {
    7. // What ever you wont to do in click this event
    8. }
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. how to disable double click event on qmainwindow titlebar?
    By banlinhtienphong in forum Qt Programming
    Replies: 1
    Last Post: 28th March 2011, 10:23
  2. Replies: 1
    Last Post: 3rd May 2010, 09:25
  3. can not get mouse double click event for QGraphicsItem
    By learning_qt in forum Qt Programming
    Replies: 2
    Last Post: 14th September 2009, 20:36
  4. QTreeWidget double click - expand problem
    By stefan in forum Newbie
    Replies: 2
    Last Post: 29th June 2008, 13:24
  5. QTreeWidget double click signal
    By Pinco Pallino in forum Newbie
    Replies: 2
    Last Post: 18th November 2006, 16:37

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.