#include "Progress.h"
#include "TrainNavigation.h"
..
TrainingUI::TrainingUI()
{
progress = new Progress(this);
progress->setGeometry(30,250,350,350);
navigate = new TrainNavigation(this);
navigate->setGeometry(30,20,350,200);
}
void TrainingUI::resetTraining()
{
delete progress;
delete navigate;
// here i wanted to reinstate progress and navigate such that that it should be logical and efficient
}
#include "Progress.h"
#include "TrainNavigation.h"
..
TrainingUI::TrainingUI()
{
progress = new Progress(this);
progress->setGeometry(30,250,350,350);
navigate = new TrainNavigation(this);
navigate->setGeometry(30,20,350,200);
}
void TrainingUI::resetTraining()
{
delete progress;
delete navigate;
// here i wanted to reinstate progress and navigate such that that it should be logical and efficient
}
To copy to clipboard, switch view to plain text mode
i tried to put the code in the constructor in a static member function and tried to call that function from constructor and resetTraining() ..but it didnt worked..any help...e
Bookmarks