Below are the codes. so can any1 check them n tel tht is it the right way to paint(draw line n a point) on the central widget on a menu click event?[i think its not the right way, though its working]

form.cpp

form.h

form.ui