Bug 162874

Summary: Strokes are "cut" by borders of the canvas
Product: [Applications] krita Reporter: Cyrille Berger <cberger>
Component: ToolsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: critical CC: halla, lukast.dev
Priority: NOR Keywords: triaged
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:

Description Cyrille Berger 2008-05-30 11:06:08 UTC
When drawing with a tablet, if the cursor leaves the canvas, then the canvas 
doesn't receive anymore the tablet events. This is a Qt bug, most likely 
related to 
http://trolltech.com/developer/task-tracker/index_html?method=entry&id=168641 .

The problem lies in QApplication::notify , since "hasMouseTracking()" is 
ignored in case of a tablet.

There is a workaround in Krita for now (but as all workaround, it's not good 
enough), krita will generates a fake tablet release events when the tablet 
leave the canvas, unfortunately, there is a Qt bug, and the canvas only get the 
leave event when the cursor is released.
Comment 1 Cyrille Berger 2009-03-04 09:31:11 UTC
SVN commit 934914 by berger:

Sounds like the tablet tracking issue has been fixed upstream in 4.5.0. So I disable the workaround for Qt < 4.5.0. This still need confirmation before closing the bug report.

CCBUG:162874


 M  +2 -0      kis_qpainter_canvas.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=934914
Comment 2 Cyrille Berger 2009-03-04 22:04:44 UTC
I confirm the situation is improved with 4.5RC1, the hack isn't needed anymore, unfortunately, it seems like when the table is outside, we only receive release events, and not move events, which still make coming back on the canvas lets a line appears.
Comment 3 Halla Rempt 2009-09-07 10:57:59 UTC
Didn't lukas' canvas work fix this, too?
Comment 4 LukasT 2009-09-16 17:31:22 UTC
I think that yes, this has been fixed by infinite canvas. Now events are generated in the whole canvas.
Comment 5 Halla Rempt 2009-09-20 14:10:46 UTC
Ok, then let's close the bug.