LineEdit Class Reference

The LineEdit JavaScript class. A simplified version of the LineEdit Qt widget. More...

Properties

String text
 Text shown in the LineEdit. More...
 

Detailed Description

The LineEdit JavaScript class. A simplified version of the LineEdit Qt widget.

Note
This widget is derived from Label, it also has a label property.
var myDialog = new Dialog();
myDialog.title = “LineEdit Example”;
var userInput = new LineEdit();
userInput.label = “What is your favourite colour?”;
myDialog.add( userInput );
if ( myDialog.exec() )
{
var inputText = userInput.text;
MessageLog.trace(“Your favourite colour is “ + inputText + “!”);
}

Property Documentation

◆ text

String LineEdit::text
readwrite

Text shown in the LineEdit.