Eneboo - Documentación para desarrolladores
Slots públicos | Métodos públicos | Métodos públicos estáticos | Métodos protegidos
Referencia de la Clase QErrorMessage

The QErrorMessage class provides an error message display dialog. Más...

#include <qerrormessage.h>

Diagrama de herencias de QErrorMessage
QDialog QDialog QWidget QWidget QWidget QWidget QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject

Lista de todos los miembros.

Slots públicos

void message (const QString &)
void message (const QString &)

Métodos públicos

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

Métodos públicos estáticos

static QErrorMessageqtHandler ()
static QErrorMessageqtHandler ()

Métodos protegidos

void done (int)
void done (int)

Descripción detallada

The QErrorMessage class provides an error message display dialog.

This is basically a QLabel and a "show this message again" checkbox which remembers what not to show.

There are two ways to use this class: 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.

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.

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.

qerrormessage.png

Ver también:
QMessageBox QStatusBar::message()

Documentación del constructor y destructor

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.

QErrorMessage::~QErrorMessage ( )

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

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

Documentación de las funciones miembro

void QErrorMessage::done ( int  a) [protected, virtual]

Reimplementado de QDialog.

void QErrorMessage::done ( int  r) [protected, virtual]

Closes the dialog and sets its result code to r. If this dialog is shown with exec(), done() causes the local event loop to finish, and exec() to return r.

As with QWidget::close(), done() deletes the dialog if the WDestructiveClose flag is set. If the dialog is the application's main widget, the application terminates. If the dialog is the last window closed, the QApplication::lastWindowClosed() signal is emitted.

Ver también:
accept(), reject(), QApplication::mainWidget(), QApplication::quit()

Reimplementado de QDialog.

void QErrorMessage::message ( const QString ) [slot]
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.

Normally, m is shown at once, but if there are pending messages, m is queued for later display.

static QErrorMessage* QErrorMessage::qtHandler ( ) [static]
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.


La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'