3 #define WIDGET_WIDTH 1000    10     m_view->setViewportUpdateMode(QGraphicsView::FullViewportUpdate);
    15     setWindowTitle(tr(
"Map viewer"));
    17     connect(
m_play, SIGNAL(clicked()), 
m_scene, SLOT(onSignalStart()));
    25     QHBoxLayout* layout = 
new QHBoxLayout();
    29     m_zoom->setTickInterval(10);
    42     double ratio = (yMaxGrid - yMinGrid) / (xMaxGrid - xMinGrid);
    56     double newScale = scaleTickValue / 100.0;
    58     m_view->scale(newScale, -newScale);
 
void initialize(int startx, int starty, int width, int height)