KUrlRequesterDialog Class
Simple dialog to enter a filename/url. More...
- Header:
#include <KUrlRequesterDialog> - CMake:
find_package(KF6 REQUIRED COMPONENTS KIO)
target_link_libraries(mytarget PRIVATE KF6::KIOWidgets) - Inherits: QDialog
List of all members, including inherited members
Public Functions
- KUrlRequesterDialog(const QUrl &url, QWidget *parent = nullptr)
- KUrlRequesterDialog(const QUrl &url, const QString &text, QWidget *parent)
- QUrl selectedUrl() const
- KUrlRequester *urlRequester()
Static Public Members
Detailed Description
Dialog in which a user can enter a filename or url. It is a dialog encapsulating KUrlRequester.
Member Function Documentation
[explicit] KUrlRequesterDialog::KUrlRequesterDialog(const QUrl &url, QWidget *parent = nullptr)
Constructs a KUrlRequesterDialog.
url The url of the directory to start in. Use QString() to start in the current working directory, or the last directory where a file has been selected.
parent The parent object of this widget.
KUrlRequesterDialog::KUrlRequesterDialog(const QUrl &url, const QString &text, QWidget *parent)
Constructs a KUrlRequesterDialog.
url The url of the directory to start in. Use QString() to start in the current working directory, or the last directory where a file has been selected.
text Text of the label
parent The parent object of this widget.
[static] QUrl KUrlRequesterDialog::getUrl(const QUrl &url = QUrl(), QWidget *parent = nullptr, const QString &title = QString())
Creates a modal dialog, executes it and returns the selected URL.
url This specifies the initial path of the input line.
parent The widget the dialog will be centered on initially.
title The title to use for the dialog.
QUrl KUrlRequesterDialog::selectedUrl() const
Returns the fully qualified filename.
KUrlRequester *KUrlRequesterDialog::urlRequester()
Returns a pointer to the KUrlRequester.