MainWindowImpl::MainWindowImpl( QWidget * parent, Qt::WFlags f) //конструктор : QWidget(parent, f){ plot1 = new QwtPlot(this); show(); zoomer = NULL; if(zoomer){ std::cout<<"zoomer - YES"<<std::endl; }else std::cout<<"zoomer - NO"<<std::endl; gh(zoomer); if(zoomer){ std::cout<<"zoomer - YES"<<std::endl; }else std::cout<<"zoomer - NO"<<std::endl;}void MainWindowImpl::gh(QwtPlotZoomer *zoom){//единстенная функция MainWindowImpl находится в private if(zoom) delete zoom; zoom = new QwtPlotZoomer (QwtPlot::xBottom, QwtPlot::yLeft, plot1->canvas(), true); zoom->setMousePattern(QwtEventPattern::MouseSelect1, Qt::LeftButton); zoom->setMousePattern(QwtEventPattern::MouseSelect2, Qt::NoButton); zoom->setMousePattern(QwtEventPattern::MouseSelect3, Qt::MidButton); zoom->setMousePattern(QwtEventPattern::MouseSelect4, Qt::LeftButton); zoom->setMousePattern(QwtEventPattern::MouseSelect5, Qt::NoButton); zoom->setMousePattern(QwtEventPattern::MouseSelect6, Qt::NoButton); zoom->setTrackerMode(QwtPicker::AlwaysOff);}