QLineEdit for file paths. When editing the path, i.e. the widget is focused, the full path is shown. When not in focus, it shows only the file name with extension. A small warning icon is shown to indicate non-existing files and paths.
More...
#include <filepathlineeditqt.h>
|
void | pathChanged (const std::filesystem::path &) |
|
void | editingCanceled () |
|
|
| FilePathLineEditQt (QWidget *parent=nullptr) |
|
void | setPath (const std::filesystem::path &path) |
|
const std::filesystem::path & | getPath () const |
|
void | setAcceptMode (AcceptMode mode) |
|
void | setFileMode (FileMode mode) |
|
void | setCursorToEnd () |
|
| LineEditQt (QWidget *parent=nullptr) |
|
virtual QSize | sizeHint () const override |
|
virtual void | paintEvent (QPaintEvent *e) override |
|
|
virtual void | resizeEvent (QResizeEvent *event) override |
|
bool | updateIcon (const std::filesystem::path &path) |
|
virtual void | keyPressEvent (QKeyEvent *e) override |
|
QLineEdit for file paths. When editing the path, i.e. the widget is focused, the full path is shown. When not in focus, it shows only the file name with extension. A small warning icon is shown to indicate non-existing files and paths.
◆ updateIcon()
bool inviwo::FilePathLineEditQt::updateIcon |
( |
const std::filesystem::path & | path | ) |
|
|
protected |
update the status icon based on the given path
- Returns
- true if the path is valid given the current accept mode and file mode, otherwise false
The documentation for this class was generated from the following file: