QErrorMessage(3qt)

πŸ“¦ version 3.3.8b, in fedora 43, fedora 44

πŸ’– QErrorMessage(3qt) πŸ’–

okay bestie, welcome to the manual page for QErrorMessage β€” yes that's the real name, it lives in the 3qt manual section, and no we are not renaming it, she's iconic as-is. 🌸


✨ NAME ✨

QErrorMessage β€” the error message display dialog, aka your app's little "hey. something happened." popup πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <qerrormessage.h>

Inherits QDialog.

πŸ‘‘ Public Members

QErrorMessage ( QWidget * parent, const char * name = 0 )
~QErrorMessage ()

πŸ’… Public Slots

void message ( const QString & m )

⭐ Static Public Members

QErrorMessage * qtHandler ()

🌈 DESCRIPTION 🌈

The QErrorMessage class provides an error message display dialog. that's the whole vibe. it shows errors. it's a dialog. periodt.

Lowkey it's just a QLabel and a "show this message again" checkbox that remembers what you told it not to show. she has memory. she holds grudges. respectfully. πŸ’€

There are two ways to use this class: <ol type=1>

  1. For production applications. In this context the class can be used to display messages which you don't need the user to see more than once. To use QErrorMessage like this, you create the dialog in the usual way and call the message() slot, or connect signals to it. easy. slay.
  2. For developers. In this context the static qtHandler() installs a message handler using qInstallMsgHandler() and creates a QErrorMessage that displays qDebug(), qWarning() and qFatal() messages. it's giving debug-mode main character energy πŸ”₯

In both cases QErrorMessage will queue pending messages, and display them (or not) in order, as soon as the user presses Enter or clicks OK after seeing each message. yes bestie, she queues. she's organized. she's not gonna dump five errors on you at once, she has manners. 🫢

<center>

[Image Omitted]

</center>

See also QMessageBox, QStatusBar::message(), Dialog Classes, and Miscellaneous Classes. πŸ‘€


πŸŽ€ MEMBER FUNCTION DOCUMENTATION πŸŽ€

QErrorMessage::QErrorMessage ( QWidget * parent, const char * name = 0 )

Constructs and installs an error handler window. The parent parent and name name are passed on to the QDialog constructor. so like, it's just doing the normal dialog thing, but make it error-y. πŸ’–

QErrorMessage::~QErrorMessage ()

Destroys the object and frees any allocated resources. Notably, the list of "do not show again" messages is deleted. rip to the grudge list, she's letting it all go 😭✨

void QErrorMessage::message ( const QString & m ) [slot]

Shows message m and returns immediately. If the user has requested that m not be shown, this function does nothing. (she remembers!! she's respecting your boundaries!! 🌸)

Normally, m is shown at once, but if there are pending messages, m is queued for later display. the line starts here bestie, no cutting 🎟️

QErrorMessage * QErrorMessage::qtHandler () [static]

Returns a pointer to a QErrorMessage object that outputs the default Qt messages. This function creates such an object, if there isn't one already. she's a singleton and she knows it πŸ’…


πŸ” SEE ALSO πŸ”


Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. (fr fr read the license file, it's the whole legal vibe πŸ‘‘)


✍️ AUTHOR ✍️

Generated automatically from the source code. no human wrote this, the machine did, and honestly? she ate. πŸ€–πŸ’…


πŸ› BUGS πŸ›

If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. (good bug reports are literally a love language 🫢)

The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. so like, this is the fan-made remix, not the official release 😌

If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qerrormessage.3qt) and the Qt version (3.3.8). yes bestie, include BOTH, don't make them guess πŸ™ˆ


and that's the whole page!! every option, every function, every link, preserved and slaying. nothing skipped, nothing invented. i would never do that to you πŸ’–

okay bye, this was Trolltech AS, dated 2 February 2007, riding for Qt version 3.3.8 β€” thanks for coming to my TED talk, drink some water, and remember: QErrorMessage is just a QLabel with a checkbox and a dream πŸŒˆβ­πŸ¦‹

πŸ“¦ where this page comes from