Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Name

qsetitemtext — set text in combobox

Syntax

Panel
bgColor#FFFFAA
borderWidth1
borderStylesolid

qsetitemtext [qcombobox] index text

Description

The qsetitemtext command sets the textual content of a qcombobox at the specified index position.

The index numbering starts at 0.

Arguments

None

Examples

Ex.1: Set combo item text

Anchor
Set combo item text
Set combo item text

No Format
bgColor#eeeeee
borderWidth1
# Create window
set widget [qwidget ]
set layout [qvboxlayout $widget]

# Create combobox
set combo [qcombobox  ]
qaddwidget $layout

# Insert an item, then replace this item
qinsertitem $combo 0  "An item"
qsetitemtext $combo 0 "Modified item"

qshow $widget

{noformat}

{pagebreak}