Home · Modules · Classes · Namespaces · Functions

QxtCheckComboBox Class Reference
[QxtGui module]

The QxtCheckComboBox widget is an extended QComboBox with checkable items. More...

    #include <QxtCheckComboBox>

Inherits QComboBox.

Public Functions

Public Slots

Signals

Additional Inherited Members


Detailed Description

The QxtCheckComboBox widget is an extended QComboBox with checkable items.

QxtComboBox is a specialized combo box with checkable items. Checked items are collected together in the line edit.

    QxtCheckComboBox* comboBox = new QxtCheckComboBox(this);
    comboBox->addItems(...);
    comboBox->setItemCheckState(2, Qt::Checked);
    comboBox->setItemCheckState(4, Qt::Checked);
    // OR
    comboBox->setCheckedItems(QStringList() << "dolor" << "amet");

"QxtCheckComboBox in Plastique style."


Member Function Documentation

QxtCheckComboBox::QxtCheckComboBox ( QWidget * parent = 0 )

Constructs a new QxtCheckComboBox with parent.

QxtCheckComboBox::~QxtCheckComboBox ()   [virtual]

Destructs the combo box.

QStringList QxtCheckComboBox::checkedItems () const

See also setCheckedItems().

void QxtCheckComboBox::checkedItemsChanged ( const QStringList & items )   [signal]

This signal is emitted whenever the checked items have been changed.

QString QxtCheckComboBox::defaultText () const

See also setDefaultText().

Qt::CheckState QxtCheckComboBox::itemCheckState ( int index ) const

Returns the check state of the item at index.

See also setItemCheckState().

QString QxtCheckComboBox::separator () const

See also setSeparator().

void QxtCheckComboBox::setCheckedItems ( const QStringList & items )   [slot]

See also checkedItems().

void QxtCheckComboBox::setDefaultText ( const QString & text )

See also defaultText().

void QxtCheckComboBox::setItemCheckState ( int index, Qt::CheckState state )

Sets the check state of the item at index.

See also itemCheckState().

void QxtCheckComboBox::setSeparator ( const QString & separator )

See also separator().


Copyright © 2007-2010 Qxt Foundation
Qxt 0.6.1