Skip to content

class_lineedit

reduz edited this page Feb 23, 2014 · 10 revisions

LineEdit

Inherits: Control\n\n

Brief Description

Control that provides single line string editing.

Member Functions

Signals

Description

LineEdit provides a single line string editor, used for text fields.

Member Function Description

  • void set_max_length ( int chars ) \ Set the maximum amount of characters the lineedit can edit, and cropping existing text in case it exceeds that limit. Setting 0 removes the limit.
  • int get_max_length ( ) const \ Return the maximum amount of characters the lineedit can edit. If 0 is returned, no limit exists.
  • void set_editable ( bool enabled ) \ Set the //editable// status of the lineedit. When disabled, existing text can"apos;t be modified and new text can"apos;t be added.
  • void set_secret ( bool enabled ) \ Set the //secret// status of the lineedit. When enabled, every character is displayed as "*".

Clone this wiki locally