KBugReport Class
A dialog box for sending bug reports. More...
| Header: | #include <KBugReport> |
| CMake: | find_package(KF6 REQUIRED COMPONENTS XmlGui)target_link_libraries(mytarget PRIVATE KF6::XmlGui) |
| Inherits: | QDialog |
Public Functions
| KBugReport(const KAboutData &aboutData, QWidget *parent = nullptr) | |
| virtual | ~KBugReport() override |
Reimplemented Public Functions
| virtual void | accept() override |
Protected Functions
| bool | sendBugReport() |
Detailed Description
All the information needed by the dialog box (program name, version, bug-report address, etc.) comes from the KAboutData class. Make sure you create an instance of KAboutData and call KAboutData::setApplicationData(<aboutData>).

Member Function Documentation
[explicit] KBugReport::KBugReport(const KAboutData &aboutData, QWidget *parent = nullptr)
Creates a bug-report dialog using information derived from aboutData as a child of parent.
Note that you shouldn't have to do this manually, since KHelpMenu takes care of the menu item for "Report Bug..." and of creating a KBugReport dialog.
[override virtual noexcept] KBugReport::~KBugReport()
Destructor.
[override virtual] void KBugReport::accept()
Reimplements: QDialog::accept().
OK has been clicked.
[protected] bool KBugReport::sendBugReport()
Attempt to e-mail the bug report.
Returns true on success.