[Qt-interest] problem in mouseEvent
chandrasekar wagmare
sekarwagmare at gmail.com
Mon Apr 6 13:47:07 CEST 2009
friends,
i create a custom tooltip .. inside there is a label with a closeButton
pixmap ...
i try to post mouseEvent on the label ... so i try like this
QPoint <http://doc.trolltech.com/latest/QPoint.html> mouseValue;
if(event->button() == Qt::LeftButton){
mouseValue = event->pos();
if((label2->rect().contains(mouseValue) == true){
printf("*********he clicking on the label ... \n");
}else{
printf("clicking outside ....\n");
}
return ;
}else{
QWidget
<http://doc.trolltech.com/latest/QWidget.html>::mousePressEvent(event);
return ;
}
i try clicking on the label .. but still its giving clicking outside ...
where i done the mistake ... please help ...
--
CHANDRU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090406/814298c2/attachment.html
More information about the Qt-interest-old
mailing list