QtlMovie 1.12 (A specialized FFmpeg front-end)
QtlFileDialogUtils.h File Reference

Declare some utilities functions for QFileDialog. More...

Functions

void qtlBrowseDirectory (QWidget *parent, QLineEdit *edit, const QString &title, const QString &defaultInitial=QDir::homePath())
 Select a directory and set a QLineEdit with the selected value. More...
 
void qtlBrowseFile (QWidget *parent, QLineEdit *edit, const QString &title, const QString &defaultInitial=QDir::homePath(), const QString &filters=QString())
 Select an existing file and set a QLineEdit with the selected value. More...
 

Detailed Description

Declare some utilities functions for QFileDialog.

Qtl, Qt utility library.

Function Documentation

◆ qtlBrowseDirectory()

void qtlBrowseDirectory ( QWidget *  parent,
QLineEdit *  edit,
const QString &  title,
const QString &  defaultInitial = QDir::homePath() 
)

Select a directory and set a QLineEdit with the selected value.

Typically invoked by "Browse..." buttons for a directory.

Parameters
[in]parentOptional parent widget. If not 0, the dialog will be shown centered over the parent widget.
[in,out]editLine edit to read and write.
[in]titleBrowse window title.
[in]defaultInitialDefault directory to start from if edit is empty. The user's home directory by default.

◆ qtlBrowseFile()

void qtlBrowseFile ( QWidget *  parent,
QLineEdit *  edit,
const QString &  title,
const QString &  defaultInitial = QDir::homePath(),
const QString &  filters = QString() 
)

Select an existing file and set a QLineEdit with the selected value.

Typically invoked by "Browse..." buttons for a file.

Parameters
[in]parentOptional parent widget. If not 0, the dialog will be shown centered over the parent widget.
[in,out]editLine edit to read and write.
[in]titleBrowse window title.
[in]defaultInitialDefault file path to start from if edit is empty. The user's home directory by default.
[in]filtersFile filters, see the documentation of QFileDialog::getOpenFileName().