KNSWidgets::Dialog Class

class KNSWidgets::Dialog

This class is a wrapper around the QtQuick QML dialog. This dialog content is loaded QQuickWidget. More...

Header: #include <Dialog>
CMake: find_package(KF6 REQUIRED COMPONENTS NewStuff)
target_link_libraries(mytarget PRIVATE KF6::NewStuff)
Since: 6.0
Inherits: QDialog

Public Functions

Dialog(const QString &configFile, QWidget *parent = nullptr)
(since 5.94) QList<KNSCore::Entry> changedEntries() const
KNSCore::EngineBase *engine()

Detailed Description

It is recommended to reuse an instance of this class if it is expected that the user reopens the dialog. For most usecases, you should use KNSWidgets::Button or KNSWidgets::Action directly.

Member Function Documentation

[explicit] Dialog::Dialog(const QString &configFile, QWidget *parent = nullptr)

Constructs a new Dialog for the given config file and parent widget

[since 5.94] QList<KNSCore::Entry> Dialog::changedEntries() const

Entries that were changed while the user interacted with the dialog

This function was introduced in 5.94.

KNSCore::EngineBase *Dialog::engine()

Engine that is used by the dialog, might be null if the engine failed to initialize. Returns KNSCore::EngineBase used by the dialog