class KColorDialog

Color selection dialog. More...

Definition#include <kcolordlg.h>
InheritsKDialogBase
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots

Signals

Public Static Methods

Protected Methods


Detailed Description

Color selection dialog.

Features:

Simplest use:


 	QColor myColor;
 	int result = KColorDialog::getColor( myColor );
         if ( result == KColorDialog::Accepted )
            ...

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

Construct a KColorDialog

QColor color ()

Retrieve the currently selected color.

int getColor ( QColor &theColor, QWidget *parent=0L )
[static]

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

QColor grabColor (const QPoint &p)
[static]

Get the color from the pixel at point p on the screen.

void setColor ( const QColor &col )
[slot]

Preselect a color.

void colorSelected ( const QColor &col )
[signal]

Notify when a color is selected. Connect to this to monitor the color as it as selected if you are not running modal.


Generated by: root@tantive.terraplex.com on Sun Feb 27 17:39:25 2000, using kdoc 2.0a33.