QskListView

Inherits from QskScrollView

Inherited by QskSimpleListBox

Public Types

  Name
enum SelectionMode { NoSelection, SingleSelection, MultiSelection}

Public Slots

  Name
void setSelectedRow(int row)

Public Signals

  Name
void selectedRowChanged(int row)
void selectionModeChanged()
void alternatingRowColorsChanged()
void preferredWidthFromColumnsChanged()
void textOptionsChanged()

Public Functions

  Name
  QskListView(QQuickItem * parent =nullptr)
  ~QskListView() override
void setPreferredWidthFromColumns(bool on)
bool preferredWidthFromColumns() const
void setAlternatingRowColors(bool on)
bool alternatingRowColors() const
void setSelectionMode(SelectionMode mode)
SelectionMode selectionMode() const
void setTextOptions(const QskTextOptions & textOptions)
QskTextOptions textOptions() const
Q_INVOKABLE int selectedRow() const
virtual int rowCount() const =0
virtual int columnCount() const =0
virtual qreal columnWidth(int col) const =0
virtual qreal rowHeight() const =0
virtual Q_INVOKABLE QVariant valueAt(int row, int col) const =0
virtual QskColorFilter graphicFilterAt(int row, int col) const
virtual QskAspect::Subcontrol textSubControlAt(int row, int col) const

Protected Functions

  Name
void keyPressEvent(QKeyEvent * event) override
void keyReleaseEvent(QKeyEvent * event) override
void mousePressEvent(QMouseEvent * event) override
void mouseReleaseEvent(QMouseEvent * event) override
void updateScrollableSize()
void componentComplete() override

Public Properties

  Name
bool alternatingRowColors
SelectionMode selectionMode
int selectedRow
QskTextOptions textOptions
bool preferredWidthFromColumns

Public Attributes

  Name
const QskAspect::Subcontrol Cell
const QskAspect::Subcontrol Text
const QskAspect::Subcontrol CellSelected
const QskAspect::Subcontrol TextSelected

Public Types Documentation

enum SelectionMode

Enumerator Value Description
NoSelection    
SingleSelection    
MultiSelection    

Public Slots Documentation

slot setSelectedRow

void setSelectedRow(
    int row
)

Public Signals Documentation

signal selectedRowChanged

void selectedRowChanged(
    int row
)

signal selectionModeChanged

void selectionModeChanged()

signal alternatingRowColorsChanged

void alternatingRowColorsChanged()

signal preferredWidthFromColumnsChanged

void preferredWidthFromColumnsChanged()

signal textOptionsChanged

void textOptionsChanged()

Public Functions Documentation

function QskListView

QskListView(
    QQuickItem * parent =nullptr
)

function ~QskListView

~QskListView() override

function setPreferredWidthFromColumns

void setPreferredWidthFromColumns(
    bool on
)

function preferredWidthFromColumns

bool preferredWidthFromColumns() const

function setAlternatingRowColors

void setAlternatingRowColors(
    bool on
)

function alternatingRowColors

bool alternatingRowColors() const

function setSelectionMode

void setSelectionMode(
    SelectionMode mode
)

function selectionMode

SelectionMode selectionMode() const

function setTextOptions

void setTextOptions(
    const QskTextOptions & textOptions
)

function textOptions

QskTextOptions textOptions() const

function selectedRow

Q_INVOKABLE int selectedRow() const

function rowCount

virtual int rowCount() const =0

function columnCount

virtual int columnCount() const =0

function columnWidth

virtual qreal columnWidth(
    int col
) const =0

function rowHeight

virtual qreal rowHeight() const =0

function valueAt

virtual Q_INVOKABLE QVariant valueAt(
    int row,
    int col
) const =0

function graphicFilterAt

virtual QskColorFilter graphicFilterAt(
    int row,
    int col
) const

function textSubControlAt

virtual QskAspect::Subcontrol textSubControlAt(
    int row,
    int col
) const

Protected Functions Documentation

function keyPressEvent

void keyPressEvent(
    QKeyEvent * event
) override

function keyReleaseEvent

void keyReleaseEvent(
    QKeyEvent * event
) override

function mousePressEvent

void mousePressEvent(
    QMouseEvent * event
) override

function mouseReleaseEvent

void mouseReleaseEvent(
    QMouseEvent * event
) override

function updateScrollableSize

void updateScrollableSize()

function componentComplete

void componentComplete() override

Public Property Documentation

property alternatingRowColors

bool alternatingRowColors;

property selectionMode

SelectionMode selectionMode;

property selectedRow

int selectedRow;

property textOptions

QskTextOptions textOptions;

property preferredWidthFromColumns

bool preferredWidthFromColumns;

Public Attributes Documentation

variable Cell

static const QskAspect::Subcontrol Cell;

variable Text

static const QskAspect::Subcontrol Text;

variable CellSelected

static const QskAspect::Subcontrol CellSelected;

variable TextSelected

static const QskAspect::Subcontrol TextSelected;

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