PDA

View Full Version : QT's Scribble example



mythili
27th March 2013, 06:52
Hi,

I am using QT Scribble example. When we draw using mouse, there is slightly zigzag kind of structure. I want it to be like solidline when i use this. Please help me.

Rgds,
Mythili

Santosh Reddy
28th March 2013, 10:11
Then Qt Scribble is not the example for drawing line, you better have a look at Diagram Scene Example

Any way just to answer your post, comment the code in mouseMoveEvent(), and see what happens


void ScribbleArea::mouseMoveEvent(QMouseEvent *event)
{
// if ((event->buttons() & Qt::LeftButton) && scribbling)
// drawLineTo(event->pos());
}