Results 1 to 3 of 3

Thread: QHeaderView in QTableView not sending "entered" or "enteredViewport" signals.

  1. #1
    Join Date
    Apr 2010
    Posts
    77
    Thanks
    10
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X

    Default QHeaderView in QTableView not sending "entered" or "enteredViewport" signals.

    Hi Guys

    I've got a QTableView where its QHeaderView is not sending "entered" or "enteredViewport" signals when the mouse cursor passes over it. I've enabled Mouse Tracking on both the QTableView and the QHeaderView.
    The QTableView sends these signals ok.

    Any ideas why the header isn't sending the signals.

    Thanks
    Jeff

  2. #2
    Join Date
    Feb 2008
    Posts
    491
    Thanks
    12
    Thanked 142 Times in 135 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: QHeaderView in QTableView not sending "entered" or "enteredViewport" signals.

    Here you go: QTBUG-9050 QTBUG-9053

    It seems the behavior is still the same.

  3. The following user says thank you to norobro for this useful post:

    Jeffb (21st August 2011)

  4. #3
    Join Date
    Apr 2010
    Posts
    77
    Thanks
    10
    Thanked 7 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: QHeaderView in QTableView not sending "entered" or "enteredViewport" signals.

    Thanks for that.
    Good to know its not something I'm doing.
    I've got around it by using
    Qt Code:
    1. this->horizontalHeader()->viewport()->installEventFilter(this);
    To copy to clipboard, switch view to plain text mode 
    and implementing the
    Qt Code:
    1. bool eventFilter(QObject *obj, QEvent *event)
    To copy to clipboard, switch view to plain text mode 
    method.

Similar Threads

  1. Replies: 1
    Last Post: 7th April 2010, 21:46
  2. Replies: 3
    Last Post: 15th February 2010, 17:27
  3. Replies: 3
    Last Post: 8th July 2008, 19:37
  4. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05
  5. QFile Problem~ "Unknow error" in "open(QIODevice::ReadWrite)"
    By fengtian.we in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 15:58

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.