Qt Widget that control holds an array of VectorElements. This control can be used to display any number of labeled float values with configurable row(s) & column(s)
More...
#include <VectorInput.h>
Inherits QWidget.
|
QWidget * | GetFirstInTabOrder () |
|
QWidget * | GetLastInTabOrder () |
|
void | UpdateTabOrder () |
|
|
void | valueChanged (double) |
|
void | valueAtIndexChanged (int elementIndex, double newValue) |
|
void | editingFinished () |
|
Qt Widget that control holds an array of VectorElements. This control can be used to display any number of labeled float values with configurable row(s) & column(s)
◆ VectorInput()
AzQtComponents::VectorInput::VectorInput |
( |
QWidget * |
parent = nullptr , |
|
|
int |
elementCount = 4 , |
|
|
int |
elementsPerRow = -1 , |
|
|
QString |
customLabels = "" |
|
) |
| |
|
explicit |
Configures and constructs a vector control
- Parameters
-
parent | The Parent Qwidget |
elementCount | Number of elements being managed by this vector control |
elementsPerRow | Number of elements in every row |
customLabels | A string that has custom labels that are use by the Vector elements |
◆ getElements()
Fetches all elements being managed by this Vector control
- Returns
- An array of VectorElement*
◆ getSize()
int AzQtComponents::VectorInput::getSize |
( |
| ) |
const |
|
inline |
Fetches the count of elements being managed by this control
- Returns
- the number of elements being managed by this control
◆ setDecimals()
void AzQtComponents::VectorInput::setDecimals |
( |
int |
value | ) |
|
Sets the number of decimals to to lock the spinboxes being managed by this control to
- Parameters
-
◆ setDisplayDecimals()
void AzQtComponents::VectorInput::setDisplayDecimals |
( |
int |
value | ) |
|
Sets the number of display decimals to truncate the spinboxes being managed by this control to
- Parameters
-
value | DisplayDecimals value |
◆ setLabel()
void AzQtComponents::VectorInput::setLabel |
( |
int |
index, |
|
|
const QString & |
label |
|
) |
| |
Sets the label on the indicated Vector element
- Parameters
-
index | Index of the element for which the label is to be set |
label | New label |
◆ setLabelStyle()
void AzQtComponents::VectorInput::setLabelStyle |
( |
int |
index, |
|
|
const QString & |
qss |
|
) |
| |
Sets the style on the indicated Vector element
- Parameters
-
index | Index of the element for which the label is to be styled |
qss | The Qt Style to be applied |
◆ setMaximum()
void AzQtComponents::VectorInput::setMaximum |
( |
double |
value | ) |
|
Sets the maximum value that all spinboxes being managed by this control can have
- Parameters
-
◆ setMinimum()
void AzQtComponents::VectorInput::setMinimum |
( |
double |
value | ) |
|
Sets the minimum value that all spinboxes being managed by this control can have
- Parameters
-
◆ setStep()
void AzQtComponents::VectorInput::setStep |
( |
double |
value | ) |
|
Sets the step value that all spinboxes being managed by this control can have
- Parameters
-
◆ setSuffix()
void AzQtComponents::VectorInput::setSuffix |
( |
const QString & |
suffix | ) |
|
Sets the suffix that is appended to values in spin boxes
- Parameters
-
◆ setValuebyIndex()
void AzQtComponents::VectorInput::setValuebyIndex |
( |
double |
value, |
|
|
int |
index |
|
) |
| |
Sets the value on the indicated Vector element
- Parameters
-
value | the new value |
index | Index of the element for which the value is to be set |
The documentation for this class was generated from the following file:
- Code/Framework/AzQtComponents/AzQtComponents/Components/Widgets/VectorInput.h