[Qt-interest] TreeWidget mousePressEvent not being captured
Sujan Dasmahapatra
sujan.dasmahapatra at gmail.com
Thu Dec 10 06:55:24 CET 2009
Friends
I have a claas TreeWidget which is derived from QTreeWidget I am overriding
mousePressEvent() but when I am clicking in the region of TreeWidget the
event is not getting captured. Please tell what to do . see the codes below
class TreeWidget:public QTreeWidget
{
Q_OBJECT
public:
TreeWidget();
~TreeWidget();
void mousePressEvent(QMouseEvent *me);
};
void TreeWdiget::mousePressEvent(QMouseEvent *me)
{
qDebug() << "Testing " << "\n";
}
//but this event is not being captured in the mainwindow where I am setting
this widget on the mainwindow.
// then i am clicking on the treewidget. but no response.
whats wrong pls tell me someone.
Thanks sujan
--
Thanks & Regards
S. Dasmahapatra
B.E. (Aeronautics-Aerodynamics)
Software programmer
Bangalore, India
Ph:91-9900839788
Office: 91-80-66470248
mail id : sujan.dasmahapatra at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091210/14560562/attachment.html
More information about the Qt-interest-old
mailing list