Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Unknown macro: {alias}

Name

qsetitemtext — set text in combobox

Syntax

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

Unknown macro: {indent}

Examples

Ex.1: Set combo item text

# 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

Unknown macro: {pagebreak}
  • No labels