KColorDialog Class Reference

[kio Index] [kio Hierarchy] [Headers]


KDE Color Selection dialogFeatures: Colour selection from a standard system palette More...

#include <kcolordlg.h>

Inherits: QDialog (qt)

Public Members

Public Slots

Signals


Detailed Description

KDE Color Selection dialogFeatures:

Colour selection from a standard system palette.

Colour selection from a Palette of H vs S and V selectors (similar to windoze).

Direct input of HSV or RGB values.

Saving of custom colors

simplest use:

QColor myColor;

int result = KColorDialog::getColor( myColor );


KColorDialog( QWidget *parent = 0L, const char *name = 0L, bool modal = FALSE ) [public]

Construct a KColorDialog

void setColor( const QColor &col ) [public]

Preselect a color

QColor color() [public]

Retrieve the currently selected color.

int getColor( QColor &theColor ) [public static]

This is probably the function you are looking for. Just call this to pop up dialog get the selected color. returns result().

void colorSelected( const QColor &col ) [signal]

connect to this to monitor the color as it as selected if you are not running modal.


Documentation generated by tasin@cd1 on Die Nov 30 17:32:00 CET 1999
Kdoc