|  | Home · All Classes · Main Classes · Annotated · Grouped Classes · Functions |

# Obsolete Members for Q3ProgressDialog

The following class members are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

- Q3ProgressDialog class reference

### Public Functions

- Q3ProgressDialog ( QWidget * creator, const char * name, bool modal = false, Qt::WFlags f = 0 ) `(obsolete)`
- Q3ProgressDialog ( const QString & labelText, const QString & cancelButtonText, int totalSteps, QWidget * creator = 0, const char * name = 0, bool modal = false, Qt::WFlags f = 0 ) `(obsolete)`

- 3 public functions inherited from QWidget

## Member Function Documentation

### Q3ProgressDialog::Q3ProgressDialog ( QWidget * creator, const char * name, bool modal = false, Qt::WFlags f = 0 )

Constructs a progress dialog.

Default settings:

- The label text is empty.
- The cancel button text is (translated) "Cancel".
- The total number of steps is 100.

The creator argument is the widget to use as the dialog's parent. The name, modal, and the widget flags, f, are passed to the QDialog::QDialog() constructor. If modal is false (the default), you must have an event loop proceeding for any redrawing of the dialog to occur. If modal is true, the dialog ensures that events are processed when needed.

See also setLabelText(), setLabel(), setCancelButtonText(), setCancelButton(), and setTotalSteps().

### Q3ProgressDialog::Q3ProgressDialog ( const QString & labelText, const QString & cancelButtonText, int totalSteps, QWidget * creator = 0, const char * name = 0, bool modal = false, Qt::WFlags f = 0 )

Constructs a progress dialog.

The labelText is text used to remind the user what is progressing.

The cancelButtonText is the text to display on the cancel button, or 0 if no cancel button is to be shown.

The totalSteps is the total number of steps in the operation for which this progress dialog shows progress. For example, if the operation is to examine 50 files, this value would be 50. Before examining the first file, call setProgress(0). As each file is processed call setProgress(1), setProgress(2), etc., finally calling setProgress(50) after examining the last file.

The creator argument is the widget to use as the dialog's parent. The name, modal, and widget flags, f, are passed to the QDialog::QDialog() constructor. If modal is false (the default), you will must have an event loop proceeding for any redrawing of the dialog to occur. If modal is true, the dialog ensures that events are processed when needed.

See also setLabelText(), setLabel(), setCancelButtonText(), setCancelButton(), and setTotalSteps().