Logo Search packages:      
Sourcecode: qt4-x11 version File versions

QStyleOptionSpinBox Class Reference

Inheritance diagram for QStyleOptionSpinBox:

QStyleOptionComplex QStyleOption

List of all members.


Detailed Description

the slider's orientation (horizontal or vertical)

QStyleOptionSlider::orientation The default orientation is Qt::Horizontal.

See also:
Qt::Orientation
QStyleOptionSlider::minimum the minimum value for the slider The default value is 0.

QStyleOptionSlider::maximum the maximum value for the slider The default value is 0.

QStyleOptionSlider::tickPosition the position of the slider's tick marks, if any The default value is QSlider::NoTicks.

See also:
QSlider::TickPosition
QStyleOptionSlider::tickInterval the interval that should be drawn between tick marks The default value is 0.

QStyleOptionSlider::notchTarget the number of pixel between notches The default value is 0.0.

See also:
QDial::notchTarget()
QStyleOptionSlider::dialWrapping whether the dial should wrap or not The default value is false, i.e. the dial is not wrapped.

See also:
QDial::wrapping()
QStyleOptionSlider::upsideDown the slider control orientation Normally a slider increases as it moves up or to the right; upsideDown indicates that it should do the opposite (increase as it moves down or to the left). The default value is false, i.e. the slider increases as it moves up or to the right.

See also:
QStyle::sliderPositionFromValue(), QStyle::sliderValueFromPosition(), QAbstractSlider::invertedAppearance
QStyleOptionSlider::sliderPosition the position of the slider handle If the slider has active feedback (i.e., QAbstractSlider::tracking is true), this value will be the same as sliderValue. Otherwise, it will have the current position of the handle. The default value is 0.

See also:
QAbstractSlider::tracking, sliderValue
QStyleOptionSlider::sliderValue the value of the slider If the slider has active feedback (i.e., QAbstractSlider::tracking is true), this value will be the same as sliderPosition. Otherwise, it will have the value the slider had before the mouse was pressed.

The default value is 0.

See also:
QAbstractSlider::tracking sliderPosition
QStyleOptionSlider::singleStep the size of the single step of the slider The default value is 0.

See also:
QAbstractSlider::singleStep
QStyleOptionSlider::pageStep the size of the page step of the slider The default value is 0.

See also:
QAbstractSlider::pageStep
The QStyleOptionSpinBox class is used to describe the parameters necessary for drawing a spin box. QStyleOptionSpinBox contains all the information that QStyle functions need to draw QSpinBox and QDateTimeEdit.

For performance reasons, the access to the member variables is direct (i.e., using the . or -> operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.

For an example demonstrating how style options can be used, see the {widgets/styles}{Styles} example.

See also:
QStyleOption, QStyleOptionComplex

Definition at line 552 of file qstyleoption.h.


Public Types

enum  OptionType {
  SO_Default, SO_FocusRect, SO_Button, SO_Tab,
  SO_MenuItem, SO_Frame, SO_ProgressBar, SO_ToolBox,
  SO_Header, SO_Q3DockWindow, SO_DockWidget, SO_Q3ListViewItem,
  SO_ViewItem, SO_TabWidgetFrame, SO_TabBarBase, SO_RubberBand,
  SO_ToolBar, SO_GraphicsItem, SO_Complex = 0xf0000, SO_Slider,
  SO_SpinBox, SO_ToolButton, SO_ComboBox, SO_Q3ListView,
  SO_TitleBar, SO_GroupBox, SO_SizeGrip, SO_CustomBase = 0xf00,
  SO_ComplexCustomBase = 0xf000000
}
enum  StyleOptionType { Type = SO_SpinBox }
enum  StyleOptionVersion { Version = 1 }

Public Member Functions

void init (const QWidget *w)
void initFrom (const QWidget *w)
 QStyleOptionSpinBox (const QStyleOptionSpinBox &other)
 QStyleOptionSpinBox ()

Public Attributes

QStyle::SubControls activeSubControls
QAbstractSpinBox::ButtonSymbols buttonSymbols
Qt::LayoutDirection direction
QFontMetrics fontMetrics
bool frame
QPalette palette
QRect rect
QStyle::State state
QAbstractSpinBox::StepEnabled stepEnabled
QStyle::SubControls subControls
int type
int version

Protected Member Functions

 QStyleOptionSpinBox (int version)

Related Functions

(Note that these are not member functions.)

qstyleoption_cast (QStyleOption *option)
qstyleoption_cast (const QStyleOption *option)
 the alignment of the display value for the item

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index