LoadingSpinner

class LoadingSpinner : public QDialog

This is a class to show loading window whenever there is some backend task going on in the tool for eg.

Performing a lengthy saving action or loading data, etc.

This function is used to initialize the dialog box for the Loading Window

We first load the gif for the loading window spinner and we set the gif to the label(refer loadingspinner.ui) Then we scale it to fit the window and then we start the gif. Whenever the dialog is called, it will start the gif and the loading spinner will start spinning.

See also

qInstallMessageHandler()

Public Functions

explicit LoadingSpinner(QWidget *parent = nullptr)

This is the constructor which sets the spinner and starts it.

Parameters:

parent

~LoadingSpinner()

Destructor.

void SetMessage(QString head, QString body)

This function is used to set message to the loading window.

It is called for setting the title and label message specific to the task.

Parameters:
  • head

  • body