You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
1.0 KiB

6 months ago
#include "mygraphicsview.h"
#include"gamewidget.h"
myGraphicsView::myGraphicsView()
{}
void myGraphicsView::mousePressEvent(QMouseEvent *event)
{
GameWidget::widget->mousePressEvent(event);
}
/*
QGraphicsViewQWidget
QWidget
QGraphicsView
QGraphicsViewmouseMoveEvent
mousePressEventmouseReleaseEvent
QWidget
*/
void myGraphicsView::mouseMoveEvent(QMouseEvent *event)
{
GameWidget::widget->mouseMoveEvent(event);
}
void myGraphicsView::mouseReleaseEvent(QMouseEvent *event)
{
GameWidget::widget->mouseReleaseEvent(event);
}