Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Properties | Friends

QDialog Class Reference

Search for all occurrences

Detailed Description

Definition at line 56 of file qdialog.h.

#include <qdialog.h>

Inheritance diagram for QDialog:
Inheritance graph
[legend]

List of all members.

Public Types

enum   DialogCode { Rejected, Accepted }

Public Slots

void  open ()
int  exec ()
virtual void  done (int)
virtual void  accept ()
virtual void  reject ()
void  showExtension (bool)

Signals

void  finished (int result)
void  accepted ()
void  rejected ()

Public Member Functions

  QDialog (QWidget *parent=0, Qt::WindowFlags f=0)
  ~QDialog ()
int  result () const
void  setVisible (bool visible)
void  setOrientation (Qt::Orientation orientation)
Qt::Orientation  orientation () const
void  setExtension (QWidget *extension)
QWidget extension () const
QSize  sizeHint () const
QSize  minimumSizeHint () const
void  setSizeGripEnabled (bool)
bool  isSizeGripEnabled () const
void  setModal (bool modal)
void  setResult (int r)

Protected Member Functions

  QDialog (QDialogPrivate &, QWidget *parent, Qt::WindowFlags f=0)
void  keyPressEvent (QKeyEvent *)
void  closeEvent (QCloseEvent *)
void  showEvent (QShowEvent *)
void  resizeEvent (QResizeEvent *)
void  contextMenuEvent (QContextMenuEvent *)
bool  eventFilter (QObject *, QEvent *)
void  adjustPosition (QWidget *)

Properties

bool  sizeGripEnabled
bool  modal

Friends

class  QPushButton

Member Enumeration Documentation

enum DialogCode
Enumerator:
Rejected 
Accepted 

Definition at line 72 of file qdialog.h.


Constructor & Destructor Documentation

QDialog ( QWidget parent = 0,
Qt::WindowFlags  f = 0 
) [explicit]
~QDialog ( )
QDialog ( QDialogPrivate &  ,
QWidget parent,
Qt::WindowFlags  f = 0 
) [protected]

Member Function Documentation

int result ( ) const
void setVisible ( bool  visible ) [virtual]
void setOrientation ( Qt::Orientation  orientation )
Qt::Orientation orientation ( ) const
void setExtension ( QWidget extension )
QWidget* extension ( ) const
QSize sizeHint ( ) const [virtual]

Reimplemented from QWidget.

Reimplemented in QInputDialog, QMessageBox, QProgressDialog, and QWizard.

QSize minimumSizeHint ( ) const [virtual]

Reimplemented from QWidget.

Reimplemented in QInputDialog.

void setSizeGripEnabled ( bool  )
bool isSizeGripEnabled ( ) const
void setModal ( bool  modal )
void setResult ( int  r )
void finished ( int  result ) [signal]
void accepted ( ) [signal]
void rejected ( ) [signal]
void open ( ) [slot]
int exec ( ) [slot]
virtual void done ( int  ) [virtual, slot]
virtual void accept ( ) [virtual, slot]
virtual void reject ( ) [virtual, slot]
void showExtension ( bool  ) [slot]
void keyPressEvent ( QKeyEvent ) [protected, virtual]

Reimplemented from QWidget.

Reimplemented in QMessageBox.

void closeEvent ( QCloseEvent ) [protected, virtual]

Reimplemented from QWidget.

Reimplemented in QMessageBox, and QProgressDialog.

void showEvent ( QShowEvent ) [protected, virtual]

Reimplemented from QWidget.

Reimplemented in QMessageBox, and QProgressDialog.

void resizeEvent ( QResizeEvent ) [protected, virtual]
void contextMenuEvent ( QContextMenuEvent ) [protected, virtual]

Reimplemented from QWidget.

bool eventFilter ( QObject ,
QEvent  
) [protected, virtual]

Reimplemented from QObject.

void adjustPosition ( QWidget ) [protected]

Friends And Related Function Documentation

friend class QPushButton [friend]

Definition at line 59 of file qdialog.h.


Property Documentation

bool sizeGripEnabled [read, write]

Definition at line 61 of file qdialog.h.

bool modal [read, write]

Reimplemented from QWidget.

Definition at line 62 of file qdialog.h.


The documentation for this class was generated from the following file:

QDialog QDialog QDialog QDialog QDialog QDialog QDialog QDialog QDialog QDialog
QDialog QDialog QDialog QDialog QDialog QDialog QDialog QDialog QDialog QDialog