class KColorDialog
|
Color selection dialog. More... |
|
|
Public Methods
- KColorDialog ( QWidget *parent = 0L, const char *name = 0L, bool modal = FALSE )
- QColor color ()
Public Slots
Signals
Public Static Methods
- static int getColor ( QColor &theColor, QWidget *parent=0L )
- static QColor grabColor (const QPoint &p)
Protected Methods
- virtual void mouseReleaseEvent ( QMouseEvent * )
- virtual void keyPressEvent ( QKeyEvent * )
Detailed Description
Color selection dialog.
Features:
- Colour selection from a wide range of palettes.
- 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 );
if ( result == KColorDialog::Accepted )
...
KColorDialog ( QWidget *parent = 0L, const char *name = 0L, bool modal = FALSE )
|
Construct a KColorDialog
Retrieve the currently selected color.
[static]
This is probably the function you are looking for.
Just call this to pop up dialog get the selected color.
returns result().
[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. |