Qtopia Home - Classes - Hierachy - Annotated - Functions - Licenses - Reference |
|
The QColorDialog class provides a dialog widget for specifying colors. More...
#include <qcolordialog.h>
Inherits QDialog.
The color dialog's function is to allow users to choose colors - for instance, you might use this in a drawing program to allow the user to set the brush color.
This version of Qt only provides modal color dialogs. The static getColor() function shows the dialog and allows the user to specify a color, while getRgba() does the same but allows the user to specify a color with an alpha channel (transparency) value.
The user can store customCount() different custom colors. The custom colors are shared by all color dialogs, and remembered during the execution of the program. Use setCustomColor() to set the custom colors, and customColor() to get them.
See also
If ok is non-null, *ok is set to TRUE if the user clicked OK, and FALSE if the user clicked Cancel.
If the user clicks Cancel the initial value is returned.
This file is part of the Qtopia platform, copyright © 1995-2005 Trolltech, all rights reserved.
| Copyright © 2005 Trolltech | Trademarks | Qtopia version 2.2.0
|