Canvas Mouse event

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Canvas Mouse event

Jeff Lacki
Hi, im a total newbie to QT.  Trying to pick up how to capture
mouse events located in a Q3Canvas (or any canvas at this point).
Ive been reading that QWidgets can catch mouse events, but
can Canvas class do so also?  If so how?

Im assuming I need to setup a QEvent and somehow use connect(),
but not sure how, if at all.

Thank you for your help.

_______________________________________________
Mozilla-qt mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-qt
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Canvas Mouse event

Jeff Lacki
Ok I figured it out.  I needed to subclass from Q3CanvasView and pickup
the events there and loop
through the iterator as QT suggested.

_______________________________________________
Mozilla-qt mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-qt
Loading...