# class KSelector

###

Module | kdeui
Namespace |
Class | KSelector
Inherits | QAbstractSlider

KSelector is the base class for other widgets which provides the ability to choose from a one-dimensional range of values. An example is the KGradientSelector which allows to choose from a range of colors.

A custom drawing routine for the widget surface has to be provided by the subclass.

### methods

- KSelector (parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0

  Constructs a horizontal one-dimensional selection widget.

- KSelector (o, parent)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  o | Qt.Orientation |
  parent | QWidget | 0

  Constructs a one-dimensional selection widget with a given orientation.

- KSelector (a0)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  a0 | KSelector |

- KSelector (a0)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QWidget | 0

- KSelector (a0, a1)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | Qt.Orientation |
  a1 | QWidget | 0

- arrowDirection ( )

  returns Qt.ArrowType

  Returns the current arrow direction

- contentsRect ( )

  returns QRect

  Returns the rectangle on which subclasses should draw.

- drawArrow (painter, pos)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  painter | QPainter |
  pos | QPoint |

  Override this function to draw the cursor which indicates the current value.

- drawContents (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QPainter |

  Override this function to draw the contents of the control. The default implementation does nothing.

  Draw only within contentsRect().

- indent ( )

  returns bool

  Returns whether the indent option is set.

- mouseMoveEvent (e)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  e | QMouseEvent |

- mousePressEvent (e)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  e | QMouseEvent |

- mouseReleaseEvent (e)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  e | QMouseEvent |

- paintEvent (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QPaintEvent |

- setArrowDirection (direction)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  direction | Qt.ArrowType |

  Sets the arrow direction.

- setIndent (i)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  i | bool |

  Sets the indent option of the widget to i. This determines whether a shaded frame is drawn.

- wheelEvent (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QWheelEvent |