I am developing a qgis python plugin which uses a maptool receiving key pressed 
events by keyPressEvent(self, event) function, mouse movements events by 
canvasMoveEvent(self, event) function and mouse press events by 
canvasPressEvent(self, event) function. When the user right clicks on the 
canvas I want to display a contextual menu creating a QMenu object and running 
its popup function. When the control returns to canvas my maptool continue to 
receive only mouse movements and mouse press events and NOT key pressed events. 
Why canvas doesn't send key pressed events anymore ? Is that any workaround ?
Thank you
Roberto
==============================
Poltini Roberto
IREN ACQUA GAS S.p.A.
Servizi e Comunicazione - Sistemi Informativi Territoriali
Via Piacenza 54
16138 Genova ITALY
Tel 010.5586.791
Fax 010.5586.727
email: [email protected]<mailto:[email protected]>
==============================

________________________________
Per essere informati sulle novità del Gruppo Iren, vi invitiamo a registrarvi 
alla nostra mailing list, all’indirizzo 
"http://www.gruppoiren.it/";<http://www.gruppoiren.it/> .

Il Gruppo Iren La invita a prendere visione del Bilancio di Sostenibilita' 2013 
(http://www.gruppoiren.it/bilancio_sfogliabile_2013/index.html#p=1) e a 
visitare la sezione Sostenibilità del sito internet 
(http://www.gruppoiren.it/sostenibilita.asp<http://www.gruppoiren.it/sostenibilita.asp%20>).
 Con tali strumenti la Societa' intende intensificare i rapporti con i propri 
stakeholder attraverso un canale di comunicazione chiaro e trasparente.

Iren is pleased to announce the Sustainability Report 2013 at 
http://www.gruppoiren.it/bilancio_sfogliabile_2013/index.html#p=1. We invite 
you to visit the Sustainability website at 
http://www.gruppoiren.it/sostenibilita.asp<http://www.gruppoiren.it/sostenibilita.asp%20>.
 Sustainability Report is a part of our strategy for building trustful 
relationships with stakeholders.


Le informazioni contenute nella presente comunicazione e i relativi allegati 
possono essere riservate e sono, comunque, destinate esclusivamente alle 
persone o alla Società sopraindicati. La diffusione, distribuzione e/o 
copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal 
destinatario è proibita, sia ai sensi dell’art. 616 c.p. , che ai sensi del 
D.Lgs. n. 196/2003. Se avete ricevuto questo messaggio per errore, vi preghiamo 
di distruggerlo e di informare immediatamente il mittente.


The information in this e-mail (which includes any files transmitted with it) 
is confidential and may also be legally privileged. It is intended for the 
addressee only. Access to this e-mail by anyone else is unauthorised. It is not 
to be relied upon by any person other than the addressee, except with our prior 
written approval. If no such approval is given, we will not accept any 
liability (in negligence or otherwise) arising from any third party acting. 
Unauthorised recipients are required to maintain confidentiality. If you have 
received this e-mail in error please notify us immediately, destroy any copies 
and delete it from your computer system. Any use, dissemination, forwarding, 
printing or copying of this e-mail is prohibited.
________________________________
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to