Ok i solved this problem on my own.
I just changed some things:
NewIncident *newincident = new NewIncident(this);
if(!newincident->exec()){
incSheet = newincident->getIncSheet();
refresh(incSheet);
}
NewIncident *newincident = new NewIncident(this);
if(!newincident->exec()){
incSheet = newincident->getIncSheet();
refresh(incSheet);
}
To copy to clipboard, switch view to plain text mode
I realised that exec() returns 0 in my program so i have to catch !newincident->exec() of course -.-'
Then i initialized a class member variable(incSheet) of type Incident with the return value of getIncSheet() <- returns all values i need
refresh() is only a function to refresh some element on ControlPanel.
Bookmarks