void MainWindow::addCoreElementsView(IView * coreView) { QGraphicsObject *graphObj = dynamic_cast<QGraphicsObject *>(coreView); graphObj->setParent(ui->trackingArea); m_graphView->addGraphicsItem(graphObj); _currentCoreView = graphObj; }
void MainWindow::addTrackerElementsView(IView *elemView) { QGraphicsObject *graphObj = dynamic_cast<QGraphicsObject *>(elemView); graphObj->setParent(ui->trackingArea); m_graphView->addGraphicsItem(graphObj); QRectF viewSceneRect = m_graphView->sceneRect(); _currentElementView = graphObj; }