1QErrorMessage(3qt)                                          QErrorMessage(3qt)
2
3
4

NAME

6       QErrorMessage - Error message display dialog
7

SYNOPSIS

9       #include <qerrormessage.h>
10
11       Inherits QDialog.
12
13   Public Members
14       QErrorMessage ( QWidget * parent, const char * name = 0 )
15       ~QErrorMessage ()
16
17   Public Slots
18       void message ( const QString & m )
19
20   Static Public Members
21       QErrorMessage * qtHandler ()
22

DESCRIPTION

24       The QErrorMessage class provides an error message display dialog.
25
26       This is basically a QLabel and a "show this message again" checkbox
27       which remembers what not to show.
28
29       There are two ways to use this class: <ol type=1>
30
31       1      For production applications. In this context the class can be
32              used to display messages which you don't need the user to see
33              more than once. To use QErrorMessage like this, you create the
34              dialog in the usual way and call the message() slot, or connect
35              signals to it.
36
37       2      For developers. In this context the static qtHandler() installs
38              a message handler using qInstallMsgHandler() and creates a
39              QErrorMessage that displays qDebug(), qWarning() and qFatal()
40              messages.
41
42       In both cases QErrorMessage will queue pending messages, and display
43       them (or not) in order, as soon as the user presses Enter or clicks OK
44       after seeing each message.
45
46       <center>
47                                   [Image Omitted]
48
49       </center>
50
51       See also QMessageBox, QStatusBar::message(), Dialog Classes, and
52       Miscellaneous Classes.
53

MEMBER FUNCTION DOCUMENTATION

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

56       Constructs and installs an error handler window. The parent parent and
57       name name are passed on to the QDialog constructor.
58

QErrorMessage::~QErrorMessage ()

60       Destroys the object and frees any allocated resources. Notably, the
61       list of "do not show again" messages is deleted.
62

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

64       Shows message m and returns immediately. If the user has requested that
65       m not be shown, this function does nothing.
66
67       Normally, m is shown at once, but if there are pending messages, m is
68       queued for later display.
69

QErrorMessage * QErrorMessage::qtHandler () [static]

71       Returns a pointer to a QErrorMessage object that outputs the default Qt
72       messages.  This function creates such an object, if there isn't one
73       already.
74
75

SEE ALSO

77       http://doc.trolltech.com/qerrormessage.html
78       http://www.trolltech.com/faq/tech.html
79
81       Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com.  See the
82       license file included in the distribution for a complete license
83       statement.
84

AUTHOR

86       Generated automatically from the source code.
87

BUGS

89       If you find a bug in Qt, please report it as described in
90       http://doc.trolltech.com/bughowto.html.  Good bug reports help us to
91       help you. Thank you.
92
93       The definitive Qt documentation is provided in HTML format; it is
94       located at $QTDIR/doc/html and can be read using Qt Assistant or with a
95       web browser. This man page is provided as a convenience for those users
96       who prefer man pages, although this format is not officially supported
97       by Trolltech.
98
99       If you find errors in this manual page, please report them to qt-
100       bugs@trolltech.com.  Please include the name of the manual page
101       (qerrormessage.3qt) and the Qt version (3.3.8).
102
103
104
105Trolltech AS                    2 February 2007             QErrorMessage(3qt)
Impressum