Qt Utilities 6.14.3
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
|
A QLineEdit with a QPushButton next to it which allows to select file/directory via QFileDialog. More...
#include <pathselection.h>
Public Member Functions | |
PathSelection (QWidget *parent=nullptr) | |
Constructs a path selection widget. | |
ClearLineEdit * | lineEdit () |
Returns the line edit with the selected path. | |
const ClearLineEdit * | lineEdit () const |
Returns the line edit with the selected path. | |
void | provideCustomFileMode (QFileDialog::FileMode customFileMode) |
Can be used to provide a custom file mode. | |
void | provideCustomFileDialog (QFileDialog *customFileDialog) |
Can be used to provide a custom file dialog. | |
Protected Member Functions | |
bool | event (QEvent *event) override |
bool | eventFilter (QObject *obj, QEvent *event) override |
A QLineEdit with a QPushButton next to it which allows to select file/directory via QFileDialog.
Definition at line 15 of file pathselection.h.
|
explicit |
Constructs a path selection widget.
Definition at line 37 of file pathselection.cpp.
|
overrideprotected |
Definition at line 68 of file pathselection.cpp.
|
overrideprotected |
Definition at line 79 of file pathselection.cpp.
|
inline |
Returns the line edit with the selected path.
Definition at line 45 of file pathselection.h.
|
inline |
Returns the line edit with the selected path.
Definition at line 53 of file pathselection.h.
|
inline |
Can be used to provide a custom file dialog.
The default file mode is ignored when a custom file dialog has been specified.
Definition at line 74 of file pathselection.h.
|
inline |
Can be used to provide a custom file mode.
The default file mode is QFileDialog::Directory.
Definition at line 63 of file pathselection.h.