QCloseEvent Class Reference


The QCloseEvent class contains parameters that describe a close event. (details) (complete member list)

#include <qevent.h>

Inherits QEvent.

Public Members


Detailed Description

The QCloseEvent class contains parameters that describe a close event.

Close events are sent to widgets the user wants to close, for instance by choosing "close" from a window menu.

Close events contain a special accept flag which tells whether the receiver wants the widget to be closed.

The virtual function QWidget::closeEvent() receives close events.

See also: QWidget::close().


Member Function Documentation

QCloseEvent::QCloseEvent ()

Constructs a close event object with the accept parameter flag set to TRUE.

void QCloseEvent::accept ()

Sets the accep flag of the close event object.

Setting the accept flag indicates that the receiver of this event agrees to close the widget.

The accept flag is set by default.

See also: ignore().

void QCloseEvent::ignore ()

Clears the accept flag of the close event object.

Clearing the accept flag indicates that the receiver of this event does not want the widget to close.

The accept flag is set by default.

See also: accept().

bool QCloseEvent::isAccepted () const

Returns TRUE if the receiver of the event has agreed to close the widget.

See also: accept() and ignore().


This file is part of the Qt toolkit, copyright 1995 Troll Tech, all rights reserved.

It was generated from the following files:


Generated at 04:27, 1995/05/20 by the webmaster at Troll Tech