[Qt-interest] mousePressEvent on MainWindow
Sujan Dasmahapatra
sdh at lmglasfiber.com
Fri May 15 08:07:29 CEST 2009
void MainWindow::mouseReleaseEvent(QMouseEvent *event)
{
if(event->button()==Qt::LeftButton)
{
if(tableWidget->countTableWidget!=countMainWindow)
countMainWindow = tableWidget->countTableWidget;
}
}
Kind regards,
Sujan Dasmahapatra
From: chandrasekar wagmare [mailto:sekarwagmare at gmail.com]
Sent: Friday, May 15, 2009 11:36 AM
To: Sujan Dasmahapatra
Subject: Re: [Qt-interest] mousePressEvent on MainWindow
send your mousepressEvent code snippet
On Fri, May 15, 2009 at 11:01 AM, Sujan Dasmahapatra
<sdh at lmglasfiber.com> wrote:
Dear Friends
I have a class MainWindow which is derived from QMainWindow. Now I am
trying to re-implement mousePressEvent for MainWindow so that whenever a
mouse press happened on the MainWindow of my software I want capture
that and do something.But when through debug I kept a break point
inside that mousePressEvent and I am trying to see whether its coming
for any mouse press or nnot I am seeing it's not coming into the
function when a mouse press happens on the MainWindow.
What could be the reason for not coming inside the
mousepressEvent functions. ??????
Plss help me someone.
Kind regards,
LM Glasfiber R&D (India) Pvt. Ltd.
Sujan Dasmahapatra
Project Engineer - CFD
Telephone: +91 80 66470248
Mobile:
E-mail: sdh at lmglasfiber.com
--------------------------------------------------------------
This e-mail and any attachments are confidential. If you are not the
named or intended recipient, please notify the sender immediately and do
not disclose the contents to any other person, use it for any purpose or
store or copy the information in any medium. Any unauthorized
disclosure, use or storage is prohibited and might be unlawful.
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
--
WAGMARE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090515/41ef54f4/attachment.html
More information about the Qt-interest-old
mailing list