Eneboo - Documentación para desarrolladores
Slots públicos | Señales | Métodos públicos | Métodos protegidos
Referencia de la Clase QColorPicker
Diagrama de herencias de QColorPicker
QFrame QWidget QWidget QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject

Lista de todos los miembros.

Slots públicos

void setCol (int h, int s)

Señales

void newCol (int h, int s)

Métodos públicos

 QColorPicker (QWidget *parent=0, const char *name=0)
 ~QColorPicker ()

Métodos protegidos

QSize sizeHint () const
void drawContents (QPainter *p)
void mouseMoveEvent (QMouseEvent *)
void mousePressEvent (QMouseEvent *)

Documentación del constructor y destructor

QColorPicker::QColorPicker ( QWidget parent = 0,
const char *  name = 0 
)
QColorPicker::~QColorPicker ( )

Documentación de las funciones miembro

void QColorPicker::drawContents ( QPainter ) [protected, virtual]

Virtual function that draws the contents of the frame.

The QPainter is already open when you get it, and you must leave it open. Painter transformations are switched off on entry. If you transform the painter, remember to take the frame into account and reset transformation before returning.

This function is reimplemented by subclasses that draw something inside the frame. It should only draw inside contentsRect(). The default function does nothing.

Ver también:
contentsRect(), QPainter::setClipRect()

Reimplementado de QFrame.

void QColorPicker::mouseMoveEvent ( QMouseEvent e) [protected, virtual]

This event handler, for event e, can be reimplemented in a subclass to receive mouse move events for the widget.

If mouse tracking is switched off, mouse move events only occur if a mouse button is pressed while the mouse is being moved. If mouse tracking is switched on, mouse move events occur even if no mouse button is pressed.

QMouseEvent::pos() reports the position of the mouse cursor, relative to this widget. For press and release events, the position is usually the same as the position of the last mouse move event, but it might be different if the user's hand shakes. This is a feature of the underlying window system, not Qt.

Ver también:
setMouseTracking(), mousePressEvent(), mouseReleaseEvent(), mouseDoubleClickEvent(), event(), QMouseEvent

Reimplementado de QWidget.

void QColorPicker::mousePressEvent ( QMouseEvent e) [protected, virtual]

This event handler, for event e, can be reimplemented in a subclass to receive mouse press events for the widget.

If you create new widgets in the mousePressEvent() the mouseReleaseEvent() may not end up where you expect, depending on the underlying window system (or X11 window manager), the widgets' location and maybe more.

The default implementation implements the closing of popup widgets when you click outside the window. For other widget types it does nothing.

Ver también:
mouseReleaseEvent(), mouseDoubleClickEvent(), mouseMoveEvent(), event(), QMouseEvent

Reimplementado de QWidget.

void QColorPicker::newCol ( int  h,
int  s 
) [signal]
void QColorPicker::setCol ( int  h,
int  s 
) [slot]
QSize QColorPicker::sizeHint ( ) const [protected, virtual]

Reimplementado de QFrame.


La documentación para esta clase fue generada a partir del siguiente fichero:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'