mirror of
https://github.com/x64dbg/QtGraph.git
synced 2026-11-09 18:12:46 -10:00
13 lines
378 B
C++
13 lines
378 B
C++
#include "QGraphScene.h"
|
|
|
|
QGraphScene::QGraphScene(QWidget* parent) : QGraphicsScene(parent)
|
|
{
|
|
}
|
|
|
|
void QGraphScene::mouseMoveEvent(QGraphicsSceneMouseEvent* event)
|
|
{
|
|
QWidget* parent = (QWidget*)this->parent();
|
|
parent->setWindowTitle(QString().sprintf("x:%f, y:%f", event->scenePos().x(), event->scenePos().y()));
|
|
QGraphicsScene::mouseMoveEvent(event);
|
|
}
|