s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Editor Classes
LineEdit
chevron_left
Editor Classes
class
LineEdit
search
Constructors
functions
LineEdit
Properties
data_object
Alignment
data_object
AutoComplete
data_object
AutoCompleteVisible
data_object
ClearButtonEnabled
data_object
CursorPosition
data_object
CursorRect
data_object
DisplayText
data_object
ForwardNavigationEvents
data_object
HasSelectedText
data_object
HistoryCookie
data_object
HistoryVisible
data_object
MaxHistoryItems
data_object
MaxLength
data_object
PlaceholderText
data_object
ReadOnly
data_object
RegexValidator
data_object
SelectedText
data_object
SelectionEnd
data_object
SelectionStart
data_object
Text
data_object
Value
Methods
functions
AddHistory
functions
AddOptionToEnd
functions
AddOptionToFront
functions
Clear
functions
Copy
functions
Cut
functions
Deselect
lock
FocusNext
lock
FocusPrevious
functions
Insert
lock
OnBlur
lock
OnEditingFinished
lock
OnFocus
lock
OnKeyPress
lock
OnReturnPressed
lock
OnTextChanged
lock
OnTextEdited
functions
Paste
functions
Redo
functions
RestoreHistoryFromCookie
functions
SaveHistoryCookie
functions
SelectAll
functions
SetAutoComplete
functions
SetSelection
functions
SetValidator
functions
Undo
LineEdit
A single line text entry. See Editor.TextEdit for multi line version.
class
Editor
.
account_tree
extends
Widget
Sandbox.Tools
build
Constructors
1
LineEdit
(
parent
)
data_object
Properties
21
Alignment
TextFlag
AutoComplete
AutoComplete
AutoCompleteVisible
bool
Whether the
auto complete
Editor.Menu is visible or not.
ClearButtonEnabled
bool
Show a button to clear the text input when it is not empty.
CursorPosition
int
Position of the text cursor, at which newly typed letters will be inserted.
CursorRect
Rect
DisplayText
string
ForwardNavigationEvents
Widget
Forward up, down and enter keys to this control. This is useful if you have a search box that you want to also allow to navigate a list of items.
HasSelectedText
bool
Whether the user has any text selected within this text entry.
HistoryCookie
string
HistoryVisible
bool
True if history menu is visible
MaxHistoryItems
int
if set > 1 we will support history items (which you need to add using AddHistory)
MaxLength
int
User entered text can never be longer than this many characters (not bytes).
PlaceholderText
string
The placeholder text, it will be displayed only when the text entry is empty. Typically used to as a short description of the expected input, or as an example input.
ReadOnly
bool
RegexValidator
string
SelectedText
string
The selected text, if any.
SelectionEnd
int
Character at which the text selection ends, or -1 if there is no selection.
SelectionStart
int
Character at which the text selection begins, or -1 if there is no selection.
Text
string
The text of this text entry.
Value
string
Alias of Editor.LineEdit.Text, except disallows setting text when Editor.Widget.IsFocused is
.
functions
Methods
26
AddHistory
(
text
)
AddOptionToEnd
(
option
)
Option
AddOptionToFront
(
option
)
Option
Clear
(
)
Clear the text.
Copy
(
)
Cut
(
)
Deselect
(
)
De-select all of the text.
FocusNext
(
)
bool
If we have our menus open, let use tab/shift tab to navigate instead of switching to next control
FocusPrevious
(
)
bool
If we have our menus open, let use tab/shift tab to navigate instead of switching to next control
Insert
(
val
)
OnBlur
(
reason
)
OnEditingFinished
(
)
The text entry lost keyboard focus.
OnFocus
(
reason
)
OnKeyPress
(
e
)
OnReturnPressed
(
)
Called when the user presses the return (Enter) key.
OnTextChanged
(
value
)
Called when the input text changes.
OnTextEdited
(
value
)
Called when the text was edited.
Paste
(
)
Redo
(
)
RestoreHistoryFromCookie
(
)
SaveHistoryCookie
(
)
SelectAll
(
)
Select all of the text.
SetAutoComplete
(
func
)
SetSelection
(
start
,
length
)
Set the selected text region.
SetValidator
(
str
)
Undo
(
)
Inheritance
QObject
Widget
LineEdit
FolderEdit
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.