Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{alias:qtextedit}

Name

qtextedit — multiline text editor

...

No Format
bgColor#eeeeee
borderWidth1

# Create toplevel window 
set w [qwidget ]
qsetwindowtitle QTextEdit

# Create editor and insert/retrieve text
qvboxlayout {
	set editor [qtextedit]
	qsettext $editor "Hello World"
	qappend $editor "Appending text is easy"

	# Get text and assign to Tcl variable
	set text [qtext $editor]
	puts $text
}

qshow $w

...

No Format
bgColor#eeeeee
borderWidth1

set w [qwidget]
qsetwindowtitle "Editor"
qvboxlayout {
     set editor [qtextedit]
     qpushbutton Clear "qclear $editor"
}
qshow $w

...