[Qt-interest] mousePressEvent on MainWindow

Sujan Dasmahapatra sdh at lmglasfiber.com
Fri May 15 08:54:36 CEST 2009


I am trying with different option if it works.....actually its working
but when  I ma clicking on tablewidget it's not working
..........tablewidget is a widget on the mainwindow.

 

Kind regards, 
Sujan Dasmahapatra
  

From: chandrasekar wagmare [mailto:sekarwagmare at gmail.com] 
Sent: Friday, May 15, 2009 12:22 PM
To: Sujan Dasmahapatra
Subject: Re: [Qt-interest] mousePressEvent on MainWindow

 


see the code u send it to me .. u had send mouseReleaseEvent()   ..
please send mousePressEvent()  code snippet ...

On Fri, May 15, 2009 at 12:14 PM, Sujan Dasmahapatra
<sdh at lmglasfiber.com> wrote:

Actally

I have a tableWidget on my mainwindow and when I am reimplementing
mousePressEvent  and pressing on the tableWidget items the event is not
captured why is that can anybody tell me ?

My tablewidget is a child of mainwindow.

 

Kind regards, 
Sujan Dasmahapatra
  

From: chandrasekar wagmare [mailto:sekarwagmare at gmail.com] 
Sent: Friday, May 15, 2009 11:52 AM
To: Sujan Dasmahapatra
Subject: Re: [Qt-interest] mousePressEvent on MainWindow

 

Now I am trying to re-implement mousePressEvent for MainWindow .. 

but you are reimplementing  mouseReleaseEvent();

	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

	
	_______________________________________________
	Qt-interest mailing list
	Qt-interest at trolltech.com
	http://lists.trolltech.com/mailman/listinfo/qt-interest




-- 
WAGMARE


_______________________________________________
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/f2cad104/attachment.html 


More information about the Qt-interest-old mailing list