Results 1 to 1 of 1

Thread: tree widget item's widget don't respond to any event.

  1. #1
    Join Date
    Feb 2011
    Posts
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: tree widget item's widget don't respond to any event.

    Hi guys,

    I have a treewidget, whose items have customized widgets using QTreeWidget::setItemWidget. Now I would like to capture each item's widget mouse events and handle correspondingly. So I subclass the widget from QWidget, reimplement event() method. But event() method never invoked, which is very strange.

    I've no idea what's wrong with my approach. Should anyone help me out of this problem? Thanks very much!


    Added after 8 minutes:


    It's my carelessness of coding, not a problem. I'm sorry for that!
    Can anyone tell me how to remove this thread?
    Last edited by quantity; 11th April 2011 at 04:30.

Similar Threads

  1. tree widget like designer's widget tree
    By nroberts in forum Newbie
    Replies: 1
    Last Post: 20th November 2010, 00:06
  2. Replies: 7
    Last Post: 14th January 2010, 08:47
  3. Tree Widget
    By bismitapadhy in forum Qt Programming
    Replies: 1
    Last Post: 9th June 2009, 07:31
  4. Replies: 1
    Last Post: 18th November 2008, 06:57
  5. Replies: 14
    Last Post: 9th November 2006, 08:35

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.