scribblearea.cpp
void ScribbleArea::mouseMoveEvent(QMouseEvent *event)
{
    if ((event->buttons() == Qt::LeftButton) && isDrawing)
        drawLineTo(event->pos());
}
// When the mouse moves if the left button is clicked
// we call the drawline function which draws a line
// from the last position to the current
When the mouse moves if the left button is clicked
we call the drawline function which draws a line
from the last position to the current
When the mouse moves if the left button is clicked we call the drawline function which draws a line from the last position to the current
void ScribbleArea::mouseMoveEvent(QMouseEvent *event)
{
    if ((event->buttons() == Qt::LeftButton) && isDrawing)
        drawLineTo(event->pos());
}
void ScribbleArea :: mouseMoveEvent ( QMouseEvent * event ) { if ( ( event -> buttons ( ) == Qt :: LeftButton ) && isDrawing ) drawLineTo ( event -> pos ( ) ) ; }
When the mouse moves if the left button is clicked
we call the drawline function which draws a line
from the last position to the current
When the mouse moves if the left button is clicked we call the drawline function which draws a line from the last position to the current