Redirecting tablet/mouse event form KoCanvasControler to KoCanvasBase

Thomas Zander zander at kde.org
Mon Jul 28 13:47:09 CEST 2008


On Saturday 26. July 2008 10:03:03 Cyrille Berger wrote:
> Hi,
>
> I am considering redirecting mouse/tablet events from KoCanvasControler to
> KoCanvasBase, 

KoCanvasBase is a child-widget of the controller.  This means that the 
canvasBase always gets the events first, and if it chooses not to accept the 
event they will be offered again to the canvasController (since its the 
parent in the hierarchy).

The application-specific canvas is the only one that has all the information 
to convert mouse/tablet events into KoPointerEvent objects.

So, I'm assuming you meant that you want to catch all the events in the 
canvasController instead of the krita-specific canvas as is done now.

If that is indeed what you want to do, then I suggest a KisCanvasController.
But it won't be easy to do correctly :(

I have done quite some work on Qt4.5 for tablets, I intend to do more, but 
there is only so much time I can put in to it.  Naturally blogs which imply 
all tablet woes are related to open Qt bugs don't help my motivation a lot.

It is important to note that Linux tablet support (in Qt) is the worst of all, 
going to another platform will make Krita behave better. So keep that in mind 
when you put time in this. Unfortunately there still is a high bias towards 
Windows / Mac for tablet users.

Good luck!
-- 
Thomas Zander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kimageshop/attachments/20080728/9cb6283c/attachment.pgp 


More information about the kimageshop mailing list