[Qt-interest] mousePressEvent fails

Andreas Diehl Andreas_Diehl at abs.org
Fri May 15 12:01:32 CEST 2009


Hi.
I don't have a solution but a hint. I remember similar problems when I
onces played around with capturing events.
You may try installing an event filter on your QMainWindow. This - if
I'm correct - will catch all events. Look at the
QObject::installEventFilter(QObject*) API for an examlple.

Regards,
	Andreas

________________________________

	Von: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] Im Auftrag von Sujan
Dasmahapatra
	Gesendet: Freitag, 15. Mai 2009 10:56
	An: qt-interest at trolltech.com
	Betreff: [Qt-interest] mousePressEvent fails
	
	

	I have a QMainWindow........In QMainWindow I have 3 sub windows 

	1)      A  QTableWidget

	2)      A  QTextEdit

	3)      A QGraphicsView

	 

	All these 3 are having QMainWindow as parent.

	 

	Now I have implemented mousePressEvent for the mainwindow. But
when I press mouse only QGraphicsView is responding, QTableWidget and
QTextEdit are not responding to mousePressEvent plss can anyone tell
whats the problem.

	 

	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 <mailto: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.
--
Mit freundlichen Gru?en
Andreas Diehl 
 
-------------------------- ABS -------------------------
ABS Systemberatung OHG          Tel: +49 (0)7053/9290-03
Hauffstr. 9                     Fax: +49 (0)7053/9290-
D-75385 Bad Teinach-Zavelstein        http://www.abs.org
Registergericht Calw HRA 1031
[mailto:Andreas_Diehl at abs.org]
 
----- Loesungen fuer den Maschinen- und Anlagenbau -----



More information about the Qt-interest-old mailing list