A builder object for constructing file dialogs, such as "Open" and "Save As" dialogs.
More...
#include <FileDialogBuilder.h++>
A builder object for constructing file dialogs, such as "Open" and "Save As" dialogs.
- Author
- Mark Lindner
◆ Type
File dialog types.
Enumerator |
---|
Open | Open file dialog.
|
Save | Save file dialog.
|
Directory | Select directory dialog.
|
◆ FileDialogBuilder()
Constructor.
Begins the construction of an input dialog.
- Parameters
-
parent | The parent widget for the dialog. |
type | The type of dialog to be constructed. |
message | The message text to be displayed in the dialog. |
◆ ~FileDialogBuilder()
◆ addSlotArg()
Adds an argument to be passed to the slot when the dialog is accepted.
This is useful for passing application state through the dialog.
- Template Parameters
-
T | The type of the slot argument. This must be a type that can be converted to/from a QVariant. |
- Parameters
-
arg | The slot argument. A copy of the argument is made and stored within the dialog. |
◆ setFeature()
Specifies the feature name for the dialog.
◆ setNameFilter()
Specifies a filename filter for the dialog.
◆ setNameFilters()
Specifies a list of filename filters for the dialog.
◆ setOption()
Specifies options for the dialog.
See QFileDialog::setOption().
◆ setSlot() [1/2]
Specifies a slot to be invoked when the dialog is accepted.
- Parameters
-
target | The target object to invoke the slot on. |
slot | The slot to invoke. |
◆ setSlot() [2/2]
Specifies a slot of the dialog's parent widget to be invoked when the dialog is accepted.
- Parameters
-
◆ setStartingDir()
Specifies the starting directory for the dialog.
◆ show()
Constructs and displays the dialog.
The documentation for this class was generated from the following file: