InputDialog

Search for usage in LXR

InputDialog Class Reference
Inheritance diagram for InputDialog:

Properties

alias textEntry
 
- Properties inherited from InfoDialog
alias content
 
alias message
 
alias template
 
- Properties inherited from Dialog
alias configFile
 
string downloadNewWhat
 
alias engine
 
alias viewMode
 
- Properties inherited from QObject
 objectName
 

Signals

void finished (string text)
 
- Signals inherited from Dialog
void aboutToShowDialog ()
 
void entryEvent (var entry, int event)
 
- Signals inherited from Window
void activeViewChanged ()
 
void themeChanged ()
 
void windowClosed ()
 

Additional Inherited Members

- Public Slots inherited from Window
void activate ()
 
ViewactiveView () const
 
ViewaddView (Document *document)
 
void close ()
 
QActioncreateAction (const QString &id, const QString &text=QString(), const QString &menuLocation=QString("tools/scripts"))
 
QList< QDockWidget * > dockers () const
 
QMainWindowqwindow () const
 
void showView (View *view)
 
QList< View * > views () const
 
- Public Member Functions inherited from InfoDialog
void alert (message, level)
 
- Public Member Functions inherited from QtQuick.Controls.Dialog
void accept ()
 
 accepted ()
 
 applied ()
 
 discarded ()
 
void done (int result)
 
 helpRequested ()
 
void reject ()
 
 rejected ()
 
 reset ()
 
AbstractButton standardButton (StandardButton button)
 
- Public Member Functions inherited from Dialog
void showEntryDetails (providerId, entryId)
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
- Public Attributes inherited from QObject
typedef QObjectList
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Detailed Description

An InfoDialog with a text entry field.

This control inherits from MauiKit InfoDialog, to checkout its inherited properties refer to docs.

This dialog can have information labels and icon/image, any number of children, and more. Refer to the structure of the Info Dialog.

See also
InfoDialog::structure Structure
Maui.InputDialog
{
id: _dialog
title: "Hello"
message: "An input dialog that request some information ot be entered."
template.iconSource: "dialog-question"
textEntry.placeholderText: "Give me a name."
onRejected: close()
onFinished: (text) => console.log(text)
}
alias message
The message body.
alias textEntry
An alias to acces the entry field handled by a QQC2 TextField control.
void close()

You can find a more complete example at this link.

Definition at line 33 of file InputDialog.qml.

Property Documentation

◆ textEntry

alias InputDialog::textEntry
read

An alias to acces the entry field handled by a QQC2 TextField control.

Note
See Qt documentation on TextField for further information on its properties.

Definition at line 40 of file InputDialog.qml.

Member Function Documentation

◆ finished

void InputDialog::finished ( string text)
signal

Emitted when the dialog has been accepted.

This will depend on keeping the standardButtons as they are, or setting one that triggers the accepted role.

Note
For more information on the standard buttons ad their roles, checkout Qt Dialog docs.
Parameters
Thetext entered in the text entry field.

The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 21 2025 12:01:42 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.