#include "mainfr.h"mainForm::mainForm(QWidget* pwgt/*=0*/, const char* pszName/*=0*/) : QMainWindow(pwgt, pszName){setCaption(sCaption);QCanvas canvas(300,200);QCanvasView* cv = new QCanvasView(&canvas);}