QPathEdit  1.2.2
A Qt-Widget to get local file and folder-paths in an optimized and simple way

A Qt-Widget to get local file and folder-paths in an optimized and simple way.


The QPathEdit class was designed to provide a widget that allows the user to easily enter or select a local file or directory path. The widget comes with a plugin for QtCreator.


The QPathEdit Class

The QPathEdit class provides the following features:

You can check out the documentation by clicking on QPathEdit, or download the files below.

Usage - A simple Example

Since the QPathEdit is just a simple widget, you can use it like any other widget. The following example will create a simple window with the QPathEdit inside. If the user enters a path, the new path will be logged on the console:

#include <QApplication>
#include <QWidget>
#include <QVBoxLayout>
#include <QPathEdit>
int main(int argc, char *argv[])
QApplication a(argc, argv);
QWidget window;
QVBoxLayout *layout = new QVBoxLayout(&window);
QPathEdit *edit = new QPathEdit(&window);
QObject::connect(edit, &QPathEdit::pathChanged, [](QString path){
qDebug() << path;
return a.exec();

Installing the Plugin

To install the plugin, you need to copy the right file from the designerplugins.zip zip-package to the QtCreators designer plugin path. There are a number of subfolders for operating systems I've created the plugin for. If yours is not present, you need to compile the plugin yourself. Copy file (for example qpatheditplugin.dll) into QtCreators path. The default path would be:

After restarting the creator, navigate to the designer and to "Tools > Form Editor > About Qt Designer Plugins". The plugin should appear there. In the editor itself, you can find it inside the "Input Widgets" Section.

For more details, check Adding Qt Designer Plugins.


The documentation is available within the releases and on github pages.

The documentation was created using doxygen. It includes an HTML-documentation and Qt-Help files that can be included into QtCreator (QtAssistant) to show F1-Help (See Adding External Documentation for more details).


All downloads are located at github release. The release includes:


The edit uses a default icon for joined dialog buttons. The icon was downloaded from http://www.fatcow.com/free-icons.