QColorSelectorDialog Class Reference
[QtBaseModule]
The QColorSelectorDialog class allows users to select a color. More...
#include <QColorSelectorDialog>
Inherits QDialog.
Public Functions
- 5 public functions inherited from QDialog
- 206 public functions inherited from QWidget
- 29 public functions inherited from QObject
- 14 public functions inherited from QPaintDevice
Public Slots
- 4 public slots inherited from QDialog
- 19 public slots inherited from QWidget
- 1 public slot inherited from QObject
Signals
Static Public Members
- QColor getColor ( const QColor & color = Qt::white, QWidget * parent = 0 )
- 4 static public members inherited from QWidget
- 4 static public members inherited from QObject
Additional Inherited Members
- 2 properties inherited from QDialog
- 57 properties inherited from QWidget
- 1 property inherited from QObject
- 1 public type inherited from QObject
- 38 protected functions inherited from QWidget
- 7 protected functions inherited from QObject
- 1 protected function inherited from QPaintDevice
- 1 protected slot inherited from QWidget
- 2 protected variables inherited from QObject
- 1 protected type inherited from QPaintDevice
Detailed Description
The QColorSelectorDialog class allows users to select a color.
The user may select from a number of pre-defined colors displayed in a grid. A default color is displayed at the bottom of the grid.
The easiest way to create a QColorSelectorDialog is to use the static function getColor().
QColor color = QColorSelectorDialog::getColor(Qt::red);
Member Function Documentation
QColorSelectorDialog::QColorSelectorDialog ( const QColor & color, QWidget * parent = 0, Qt::WindowFlags flags = 0 )
Constructs a color selector dialog with the given parent and flags that initially has the specifed color selected.
QColorSelectorDialog::QColorSelectorDialog ( QWidget * parent = 0, Qt::WindowFlags flags = 0 )
Constructs a color selector dialog with the given parent and flags.
QColorSelectorDialog::~QColorSelectorDialog ()
Destroys a QColorSelectorDialog
QColor QColorSelectorDialog::color () const
Returns the currently highlighted color.
See also setColor().
const QColor & QColorSelectorDialog::defaultColor () const
Returns the default color.
See also setDefaultColor() and color().
QColor QColorSelectorDialog::getColor ( const QColor & color = Qt::white, QWidget * parent = 0 ) [static]
This is a convenience static function that returns a color selected by the user. The default color is specified by color.
The function creates a modal file dialog with the given parent widget.
void QColorSelectorDialog::selected ( const QColor & color ) [signal]
When the selected color changes, this signal is emitted with the color parameter containing the new color.
void QColorSelectorDialog::setColor ( const QColor & color ) [slot]
Sets the currently highlighted color to color.
See also color().
void QColorSelectorDialog::setDefaultColor ( const QColor & color )
Sets the default color.
See also setColor() and defaultColor().
Copyright © 2009 Trolltech |
Trademarks |
Qt Extended 4.4.3 |