PathListEditor Class

class Utils::PathListEditor

The PathListEditor class is a control that lets the user edit a list of (directory) paths using the platform separator (';',':'). More...

Header: #include <PathListEditor>
Inherits: QWidget

Public Functions

QString fileDialogTitle() const
QStringList pathList() const
void setFileDialogTitle(const QString &l)
void setPathList(const QStringList &l)
void setPathList(const QString &pathString)

Detailed Description

Typically used for path lists controlled by environment variables, such as PATH. It is based on a QPlainTextEdit as it should allow for convenient editing and non-directory type elements like

"etc/mydir1:$SPECIAL_SYNTAX:/etc/mydir2".

When pasting text into it, the platform separator will be replaced by new line characters for convenience.

© 2023 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.