QML AlphaField Element
A text box with label that accepts keyboard input when the input box has focus. More...
Properties
Detailed Description
The AlphaField type provides an input box with a text label that can be styled using field spacings and font properties. When the input box has focus a keyboard will slide out to allow a user to input text.
Here is a simple AlphaField:
import QtQuick 1.1
import "components"
AlphaField {
id: alphabetic_field1
fieldSpacing: 4
keyTextColor: "#ffffff"
keyTextBold: false
keyTextFontSize: 14
keyboardAnimationSpeed: 100
inputText: ""
width: 180
inputColor: "#ffffff"
inputFontFamily: "Arial"
inputFontPixelSize: 14
labelText: "Label"
labelColor: "#000000"
labelFontFamily: "Arial"
labelFontPixelSize: 14
onInputTextChanged: {
console.debug(inputText);
}
}
Property Documentation
The space in pixels between the label and the input box.
The color background for the input box.
Determines if the input font should be bold.
The font family that will be used for the input box.
Determines if the input font should be italic.
The font pixel size that will be used for the input box. Use either inputFontPixelSize or inputFontPointSize.
The font point size that will be used for the input box. Use either inputFontPixelSize or inputFontPointSize.
inputFontStrikeout : bool |
Determines if the input font should be strikeout.
inputFontUnderline : bool |
Determines if the input font should be underlined.
The text that will be displayed for the input box.
keyBoardAnimationSpeed : int |
Animation speed for the keyboard to scroll up into position.
Height of the keyboard button.
The color of the text that is on the keyboard button.
Width of the keyboard button.
keyboardBackGroundImage : url |
Source Image for the keyboard area background.
The text color for the label.
Determines if the label font should be bold.
The font family that will be used for the label.
Determines if the label font should be italic.
The font pixel size that will be used for the label. Use either labelFontPixelSize or labelFontPointSize.
The font point size that will be used for the label. Use either labelFontPixelSize or labelFontPointSize.
labelFontStrikeout : bool |
Determines if the label font should be strikeout.
labelFontUnderline : bool |
Determines if the label font should be underlined.
The text that will be displayed for the label.
Source Image for the keyboard button up state.
Source Image for the keyboard button down state.
The width of the control in pixels.