// void CMyLabel::mouseMoveEvent ( QMouseEvent * event )
// {
// if (m_bMoveMap)
// {
// m_MapRect.setWidth(40);
// m_MapRect.setHeight(40);
// m_MapRect.setX(event->x());
// m_MapRect.setY(event->y());
//
// m_pixmap = QPixmap::grabWindow(winId(), m_MapRect.x()-10, m_MapRect.y()-10, 20, 20);
//
// m_pixmap = m_pixmap.scaled(m_MapRect.width(),m_MapRect.height(),Qt::KeepAspectRatio);
//
// nMapX = event->x() - 20;
// nMapY = event->y() - 20;
//
// update();
// }
// {
// if (m_bMoveMap)
// {
// m_MapRect.setWidth(40);
// m_MapRect.setHeight(40);
// m_MapRect.setX(event->x());
// m_MapRect.setY(event->y());
//
// m_pixmap = QPixmap::grabWindow(winId(), m_MapRect.x()-10, m_MapRect.y()-10, 20, 20);
//
// m_pixmap = m_pixmap.scaled(m_MapRect.width(),m_MapRect.height(),Qt::KeepAspectRatio);
//
// nMapX = event->x() - 20;
// nMapY = event->y() - 20;
//
// update();
// }
// }
if (m_bMap || m_bMoveMap)
{
painter.drawPixmap(nMapX, nMapY, m_pixmap);
}