Description: Paint a small program MiniDraw, asked to draw a straight line (Line), oval (Ellipse), rectangle (Rectangle), polygons (Polygon) and other graphic elements (primitives). Each element required a class (object) to the package, such as Line, Ellipse, Rect, Polygon, Freehand the various elements can be inherited a parent class Figure each draw primitives are not the same, but the drawing interface in the parent class is the same, so you can learn and use class polymorphism.
To Search:
File list (Check if you may need any files):
MyMinDrawing\main.cpp
............\mainwindow.ui
............\MyMinDrawing.pro
............\MyMinDrawing.pro.user
............\MyMinDrawing.qrc
............\picture\Delete.jpg
............\.......\Ellipse.jpg
............\.......\FreeHand.jpg
............\.......\Line.jpg
............\.......\Polygon.jpg
............\.......\Rectangle.jpg
............\Resource\ellipse.cpp
............\........\ellipse.h
............\........\figure.cpp
............\........\figure.h
............\........\freehand.cpp
............\........\freehand.h
............\........\line.cpp
............\........\line.h
............\........\polygon.cpp
............\........\polygon.h
............\........\rectangle.cpp
............\........\rectangle.h
............\Widgets\mainwindow.cpp
............\.......\mainwindow.h
............\.......\viewwidget.cpp
............\.......\viewwidget.h
............\picture
............\Resource
............\Widgets
MyMinDrawing