Qt logo

QColorDialog Class Reference


The QColorDialog provides a dialog widget for specifying colors. More...

#include <qcolordialog.h>

Inherits QDialog.

List of all member functions.

Public Members

Static Public Members


Detailed Description

The QColorDialog provides a dialog widget for specifying colors.

This version of Qt provides the static getColor() function that pops up a modal color dialog.


Member Function Documentation

QColorDialog::~QColorDialog ()

Destroys the dialog and frees allocated memory.

QColor QColorDialog::getColor ( QColor initial, QWidget * parent=0, const char * name=0 ) [static]

Pops up a modal color dialog letting the user choose a color and returns that color. The color is initially set to initial. Returns an invalid color if the user cancels the dialog. All colors allocated by the dialog will be deallocated before this function returns.


Search the documentation, FAQ, qt-interest archive and more (uses www.troll.no):


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


Copyright © 1999 Troll TechTrademarks
Qt version 2.0.2