QskSimpleListBox

Inherits from QskListView

Public Slots

  Name
void setEntries(const QStringList & entries)
void clear()

Public Signals

  Name
void entriesChanged()
void selectedEntryChanged(const QString & )

Public Functions

  Name
  QskSimpleListBox(QQuickItem * parent =nullptr)
  ~QskSimpleListBox() override
void setColumnWidthHint(int column, qreal width)
qreal columnWidthHint(int column) const
void insert(const QStringList & list, int index)
void insert(const QString & text, int index)
void append(const QStringList & entries)
void append(const QString & entry)
void removeAt(int index)
void removeBulk(int from, int to =-1)
int rowCount() const override
int columnCount() const override
qreal columnWidth(int col) const override
qreal rowHeight() const override
QString entryAt(int row) const
QString selectedEntry() const
QStringList entries() const
QVariant valueAt(int row, int col) const override

Public Properties

  Name
QStringList entries

Public Slots Documentation

slot setEntries

void setEntries(
    const QStringList & entries
)

slot clear

void clear()

Public Signals Documentation

signal entriesChanged

void entriesChanged()

signal selectedEntryChanged

void selectedEntryChanged(
    const QString & 
)

Public Functions Documentation

function QskSimpleListBox

QskSimpleListBox(
    QQuickItem * parent =nullptr
)

function ~QskSimpleListBox

~QskSimpleListBox() override

function setColumnWidthHint

void setColumnWidthHint(
    int column,
    qreal width
)

function columnWidthHint

qreal columnWidthHint(
    int column
) const

function insert

void insert(
    const QStringList & list,
    int index
)

function insert

void insert(
    const QString & text,
    int index
)

function append

inline void append(
    const QStringList & entries
)

function append

inline void append(
    const QString & entry
)

function removeAt

void removeAt(
    int index
)

function removeBulk

void removeBulk(
    int from,
    int to =-1
)

function rowCount

int rowCount() const override

function columnCount

int columnCount() const override

function columnWidth

qreal columnWidth(
    int col
) const override

function rowHeight

qreal rowHeight() const override

function entryAt

QString entryAt(
    int row
) const

function selectedEntry

inline QString selectedEntry() const

function entries

QStringList entries() const

function valueAt

QVariant valueAt(
    int row,
    int col
) const override

Public Property Documentation

property entries

QStringList entries;

Updated on 28 July 2023 at 14:02:28 CEST