source: trunk/doc/html/qerrormessage.html

Last change on this file was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 5.3 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2<!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/dialogs/qerrormessage.cpp:76 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QErrorMessage Class</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { background: #ffffff; color: black; }
12--></style>
13</head>
14<body>
15
16<table border="0" cellpadding="0" cellspacing="0" width="100%">
17<tr bgcolor="#E5E5E5">
18<td valign=center>
19 <a href="index.html">
20<font color="#004faf">Home</font></a>
21 | <a href="classes.html">
22<font color="#004faf">All&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;Classes</font></a>
25 | <a href="annotated.html">
26<font color="#004faf">Annotated</font></a>
27 | <a href="groups.html">
28<font color="#004faf">Grouped&nbsp;Classes</font></a>
29 | <a href="functions.html">
30<font color="#004faf">Functions</font></a>
31</td>
32<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QErrorMessage Class Reference</h1>
33
34<p>The QErrorMessage class provides an error message display dialog.
35<a href="#details">More...</a>
36<p><tt>#include &lt;<a href="qerrormessage-h.html">qerrormessage.h</a>&gt;</tt>
37<p>Inherits <a href="qdialog.html">QDialog</a>.
38<p><a href="qerrormessage-members.html">List of all member functions.</a>
39<h2>Public Members</h2>
40<ul>
41<li class=fn><a href="#QErrorMessage"><b>QErrorMessage</b></a> ( QWidget&nbsp;*&nbsp;parent, const&nbsp;char&nbsp;*&nbsp;name = 0 )</li>
42<li class=fn><a href="#~QErrorMessage"><b>~QErrorMessage</b></a> ()</li>
43</ul>
44<h2>Public Slots</h2>
45<ul>
46<li class=fn>void <a href="#message"><b>message</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;m )</li>
47</ul>
48<h2>Static Public Members</h2>
49<ul>
50<li class=fn>QErrorMessage * <a href="#qtHandler"><b>qtHandler</b></a> ()</li>
51</ul>
52<hr><a name="details"></a><h2>Detailed Description</h2>
53
54<p> The QErrorMessage class provides an error message display dialog.
55<p>
56
57<p> This is basically a <a href="qlabel.html">QLabel</a> and a "show this message again" checkbox which
58remembers what not to show.
59<p> There are two ways to use this class:
60<ol type=1>
61<li> For production applications. In this context the class can be used to
62display messages which you don't need the user to see more than once. To use
63QErrorMessage like this, you create the dialog in the usual way and call the
64<a href="#message">message</a>() slot, or connect signals to it.
65<p> <li> For developers. In this context the static <a href="#qtHandler">qtHandler</a>() installs
66a message handler using <a href="qapplication.html#qInstallMsgHandler">qInstallMsgHandler</a>() and creates a QErrorMessage
67that displays <a href="qapplication.html#qDebug">qDebug</a>(), <a href="qapplication.html#qWarning">qWarning</a>() and <a href="qapplication.html#qFatal">qFatal</a>() messages.
68</ol>
69<p> In both cases QErrorMessage will queue pending messages, and display
70them (or not) in order, as soon as the user presses Enter or clicks OK
71after seeing each message.
72<p> <center><img src="qerrormessage.png"></center>
73<p> <p>See also <a href="qmessagebox.html">QMessageBox</a>, <a href="qstatusbar.html#message">QStatusBar::message</a>(), <a href="dialogs.html">Dialog Classes</a>, and <a href="misc.html">Miscellaneous Classes</a>.
74
75<hr><h2>Member Function Documentation</h2>
76<h3 class=fn><a name="QErrorMessage"></a>QErrorMessage::QErrorMessage ( <a href="qwidget.html">QWidget</a>&nbsp;*&nbsp;parent, const&nbsp;char&nbsp;*&nbsp;name = 0 )
77</h3> Constructs and installs an error handler window.
78The parent <em>parent</em> and name <em>name</em> are passed on to the <a href="qdialog.html">QDialog</a>
79constructor.
80
81<h3 class=fn><a name="~QErrorMessage"></a>QErrorMessage::~QErrorMessage ()
82</h3> Destroys the object and frees any allocated resources. Notably,
83the list of "do not show again" messages is deleted.
84<h3 class=fn>void <a name="message"></a>QErrorMessage::message ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;m )<tt> [slot]</tt>
85</h3> Shows message <em>m</em> and returns immediately. If the user has requested
86that <em>m</em> not be shown, this function does nothing.
87<p> Normally, <em>m</em> is shown at once, but if there are pending messages,
88<em>m</em> is queued for later display.
89
90<h3 class=fn><a href="qerrormessage.html">QErrorMessage</a>&nbsp;* <a name="qtHandler"></a>QErrorMessage::qtHandler ()<tt> [static]</tt>
91</h3> Returns a pointer to a QErrorMessage object that outputs the
92default Qt messages. This function creates such an object, if there
93isn't one already.
94
95<!-- eof -->
96<hr><p>
97This file is part of the <a href="index.html">Qt toolkit</a>.
98Copyright &copy; 1995-2007
99<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
100<table width=100% cellspacing=0 border=0><tr>
101<td>Copyright &copy; 2007
102<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
103<td align=right><div align=right>Qt 3.3.8</div>
104</table></div></address></body>
105</html>
Note: See TracBrowser for help on using the repository browser.