[Interest] [ Missing pixels when using drawLine ]

2012-03-15 Thread ashish raste
*Exactly Bryan, Interpolating the pixels is very easy, but for each scribbling, we may experience a certain amount of lag if we scribble fast due to the calculations/ function calling overhead involved. Also in my previous mail, the definition of the drawLineTo would be (instead of ScribbleArea)

[Interest] [ Missing pixels when using drawLine ]

2012-03-14 Thread ashish raste
*Hi all, In continuation of my previous mail, I wanted to tell that I found this link, http://stackoverflow.com/questions/1219827/qt-mouse-skipping-not-updating-every-pixel-mousemoveeventwhich talks about untracked pixels in mouseMoveEvent(). The drawLine() takes two pixels, and draws a line conn

Re: [Interest] [ Missing pixels when using drawLine ]

2012-03-13 Thread ashish raste
*Hi Christoph, * > https://bugreports.qt-project.org/browse/QTBUG-23430 > > As a workaround, use drawPixel() for single-pixel "lines". > > As you have suggested, drawPixel() would work for single-pixel lines, but for different pen-widths the drawing isn't continuous. I wanted to know whether by h

[Interest] [ Missing pixels when using drawLine ]

2012-03-13 Thread ashish raste
*Dear all, Recently I worked on a paint application, where I implemented a function to draw whatever a user is scribbling on an image. In the mouseMove event, I called a function to draw with the previous point and the current point as its arguments, using the drawLine function of QPainter. Now,