CreateProjectPage

class CreateProjectPage : public QWizardPage

This class is used to allow users to create new project.

Public Functions

CreateProjectPage(QWidget *parent = nullptr)

This function is used to initialize the ui for the CreateProjectPage Dialog Box It sets the window title and creates appropriate text boxes and labels and buttons and also sets the layout as well.

Then we add all the widgets to their respective layouts.

Parameters:

parent

~CreateProjectPage()

Destructor.

ProjectInfo getProjectInfo()

This function is used to get the information related to project.

Info is a struct declared in createprojectpage header file, consisting of QStrings to store information about various fields of the project.

The function fetches all the fields and returns to the calling function.

Returns:

ProjectInfo

void OpenDirectory()

We open a QFileDialog which opens the OS File Browser Dialog Box.

Then we set the text of dirline i.e line edit widget to the text obtained from getExisting directory and we also intialize a QDir Object with the directory string.

struct ProjectInfo