#Slider

Top  Previous  Next

Use the slider object to adjust variable value continuously.

 

Parameters

Object

Spalte A

M/O

Default

Description

#Slider

M



Text/File

Spalte B

M/O

Default

Description


O



X, Y, DX, DY

Spalten D-G

M/O

Default

Description

Ganzzahl-Konstanten

Variable vom Typ INT

O

Autom. positioning

Position and dimension

BackColor

Spalte I

M/O

Default

Beschreibung

Color0,Color1,...

O

Current background color


Format

Spalte J

M/O

Default

Beschreibung

Type={Slider¦Scrollbar}

O

Type=Slider

Type=Slider

slider-vertical

Type=Scrollbar

scrollbar-vertical

Limit1

Spalte L

M/O

Default

Description

 

<constant>

<variable>

O

VarType-Min

Lower limit value

...Numerical constant

...Variable of type VarType

Limit2

Spalte M

M/O

Default

Description

 

<constant>

<variable>

O

VarType-Max

Upper limit value

Numerical constant

Variable of type VarType

ActionLimit1, ActionLimit2

Spalten N,O

M/O

Default

Description

<action>

O


The standard LimitActions are available.

VarValue

Spalte P

M/O

Default

Description

<variable>

O


The variable to be controled

VarType

Spalten Q

M/O

Default

Description

BOOL

BYTE

SINT

SUINT

WORD

INT

DINT

DWORD

LINT

LWORD

REAL

O


All numerical data types are supported

VarState

Spalte R

M/O

Default

Description

<variable>

O


See VarState column

Option

Spalte S

M/O

Default

Description

VarStateOnOffInverted

O

 

Inverts the On / Off functionality of the VarState Variable:

 

VarState = 0 -> Off

VarState = 1 -> On

 

orientation=

{vertical¦horizontal}

O

autom.

Defines the orientation

 

orientation=vertical
bottom up Limit1 to Limit2
orientation=horizontal
left to right Limit1 to Limit2

 

Per default the orientation is set automatically:

DY >= DX

orientation=vertical

DY < DX

orientation=horizontal

 

inverted

O

 

Swaps the presentation of Limit1 und Limit2.

horizontal: Limit2 left, Limit1 right
vertical: Limit2 bottom, Limit1 top

 

 

 


 

 

 


Init, Exit

Spalten U, V

M/O

Default

Description

SetVar=<value>

O



 

 

Icon-HinweisThe style of the slider may be customized through the application.qss:

Siehe auch: customizing-qslider

/*Vertical*/

QSlider::groove:vertical{

 border: 1px solid #637EB8;

 background: white;

 width:7px;

 border-radius: 3px;

}

QSlider::add-page:vertical {

 background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #ABC7EC, stop: 1 #154A98);

 border: 1px solid #154A98;

 width: 10px;

 border-radius: 4px;

}

QSlider::sub-page:vertical {

 background: #fff;

 border: 1px solid #777;

 width: 7px;

 border-radius: 4px;

}

QSlider::handle:vertical{

 background: qlineargradient(x1:0, y1:0, x2:1, y2:1,stop:0 #fff, stop:1 #ABC7EC);

 border: 1px solid #777;

 height: 30px;

 margin-left: -11px;

 margin-right: -11px;

 border-radius: 3px;

}

QSlider::handle:pressed:vertical{

 background: qlineargradient(x1:0, y1:0, x2:1, y2:1,stop:0 #ff0000, stop:1 #ABC7EC);

}

SliderVerticalStyled