scene = new mGraphicScene(0,0,1000,1000);
QPixmap backpix;
backpix.load(".\\back.jpg");
scene->setBackgroundBrush(QBrush(QColor(192,192,192),backpix));
view = new mGraphicView;
view->setScene(scene);
view->setRenderHints(
QPainter::Antialiasing
| QPainter::TextAntialiasing);
view->setContextMenuPolicy(Qt::ActionsContextMenu);
view->centerOn(view->width()/2,view->height()/2);
setCentralWidget(view);
如上,mGraphicScene继承自QGraphicsScene mGraphicView继承自QGraphicsView
问题是1、我想绘制网格线和在
窗口边界绘制
标尺,如图,该如何实现呢

2、我想通过响应
鼠标事件来实现
QGraphicsItem的属性更改,应该在哪里重载什么函数??
3、我重载了mGraphicView的
drawBackground和drawForeground为什么
没有调用呢???
先谢谢各位啦.............................................