Hi,
I have qgraphicsview and scene. I am adding each image item with item.cpp. Same class has mouse event actions. There is no problem to catch mouse actions but when I try to open dialog ui, I am getting error.
Basically
QGraphicsScene *scene = new QGraphicsScene();
stateBox = new StateBox("1");
stateBox->setPos(100,100);
scene->addItem( stateBox);
ui->graphicsView->setScene(scene);
ui->graphicsView->show();
stateBox class in statebox.cpp with mouse handlers.
When I try to call dialogue;
void StateBox::mousePressEvent ( QGraphicsSceneMouseEvent * event )
{
// mouse single click
editItem dlg(this);
dlg.setID("here");
dlg.exec();
}
I am getting error. How an I call dialogue from statebox.cpp?
Best regards



