Public Types | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Properties

QColorDialog Class Reference

Search for all occurrences

Detailed Description

Definition at line 57 of file qcolordialog.h.

#include <qcolordialog.h>

Inheritance diagram for QColorDialog:
Inheritance graph
[legend]

List of all members.

Public Types

enum   ColorDialogOption { ShowAlphaChannel = 0x00000001, NoButtons = 0x00000002, DontUseNativeDialog = 0x00000004 }

Signals

void  currentColorChanged (const QColor &color)
void  colorSelected (const QColor &color)

Public Member Functions

  QColorDialog (QWidget *parent=0)
  QColorDialog (const QColor &initial, QWidget *parent=0)
  ~QColorDialog ()
void  setCurrentColor (const QColor &color)
QColor  currentColor () const
QColor  selectedColor () const
void  setOption (ColorDialogOption option, bool on=true)
bool  testOption (ColorDialogOption option) const
void  setOptions (ColorDialogOptions options)
ColorDialogOptions  options () const
void  open (QObject *receiver, const char *member)
void  setVisible (bool visible)

Static Public Member Functions

static QColor  getColor (const QColor &initial, QWidget *parent, const QString &title, ColorDialogOptions options=0)
static QColor  getColor (const QColor &initial=Qt::white, QWidget *parent=0)
static QRgb  getRgba (QRgb rgba=0xffffffff, bool *ok=0, QWidget *parent=0)
static int  customCount ()
static QRgb  customColor (int index)
static void  setCustomColor (int index, QRgb color)
static void  setStandardColor (int index, QRgb color)

Protected Member Functions

void  changeEvent (QEvent *event)
void  done (int result)

Properties

QColor  currentColor
ColorDialogOptions  options

Member Enumeration Documentation

Enumerator:
ShowAlphaChannel 
NoButtons 
DontUseNativeDialog 

Definition at line 67 of file qcolordialog.h.

                           {
        ShowAlphaChannel    = 0x00000001,
        NoButtons           = 0x00000002,
        DontUseNativeDialog = 0x00000004
    };

Constructor & Destructor Documentation

QColorDialog ( QWidget parent = 0 ) [explicit]
QColorDialog ( const QColor initial,
QWidget parent = 0 
) [explicit]

Member Function Documentation

void setCurrentColor ( const QColor color )
QColor currentColor ( ) const
QColor selectedColor ( ) const
void setOption ( ColorDialogOption  option,
bool  on = true 
)
bool testOption ( ColorDialogOption  option ) const
void setOptions ( ColorDialogOptions  options )
ColorDialogOptions options ( ) const
void open ( QObject receiver,
const char *  member 
)
void setVisible ( bool  visible ) [virtual]

Reimplemented from QDialog.

static QColor getColor ( const QColor initial,
QWidget parent,
const QString title,
ColorDialogOptions  options = 0 
) [static]
static QColor getColor ( const QColor initial = Qt::white,
QWidget parent = 0 
) [static]
static QRgb getRgba ( QRgb  rgba = 0xffffffff,
bool *  ok = 0,
QWidget parent = 0 
) [static]
static int customCount ( ) [static]
static QRgb customColor ( int  index ) [static]
static void setCustomColor ( int  index,
QRgb  color 
) [static]
static void setStandardColor ( int  index,
QRgb  color 
) [static]
void currentColorChanged ( const QColor color ) [signal]
void colorSelected ( const QColor color ) [signal]
void changeEvent ( QEvent event ) [protected, virtual]

Reimplemented from QWidget.

void done ( int  result ) [protected, virtual]

Reimplemented from QDialog.


Property Documentation

QColor currentColor [read, write]

Definition at line 63 of file qcolordialog.h.

ColorDialogOptions options [read, write]

Definition at line 64 of file qcolordialog.h.


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

QColorDialog QColorDialog QColorDialog QColorDialog QColorDialog QColorDialog QColorDialog QColorDialog QColorDialog QColorDialog
QColorDialog QColorDialog QColorDialog QColorDialog QColorDialog QColorDialog QColorDialog QColorDialog QColorDialog QColorDialog