QskTabBar

Inherits from QskBox

Public Slots

  Name
void setCurrentIndex(int index)

Public Signals

  Name
void currentIndexChanged(int index)
void buttonClicked(int index)
void countChanged(int )
void textOptionsChanged(const QskTextOptions & )
void tabPositionChanged(Qsk::Position )
void autoScrollFocusedButtonChanged(bool )
void autoFitTabsChanged(bool )

Public Functions

  Name
  QskTabBar(QQuickItem * parent =nullptr)
  QskTabBar(Qsk::Position position, QQuickItem * parent =nullptr)
  ~QskTabBar() override
void setTabPosition(Qsk::Position position)
Qsk::Position tabPosition() const
Qt::Orientation orientation() const
void setAutoScrollFocusedButton(bool on)
bool autoScrollFocusButton() const
void setAutoFitTabs(bool on)
bool autoFitTabs() const
void ensureButtonVisible(const QskTabButton * button)
void setTextOptions(const QskTextOptions & options)
QskTextOptions textOptions() const
Q_INVOKABLE int addTab(const QString & text)
Q_INVOKABLE int insertTab(int index, const QString & text)
Q_INVOKABLE int addTab(QskTabButton * button)
Q_INVOKABLE int insertTab(int index, QskTabButton * button)
Q_INVOKABLE void removeTab(int index)
Q_INVOKABLE void clear(bool autoDelete =false)
bool isTabEnabled(int index) const
void setTabEnabled(int index, bool enabled)
int currentIndex() const
int count() const
Q_INVOKABLE QskTabButton * buttonAt(int position)
Q_INVOKABLE const QskTabButton * buttonAt(int position) const
Q_INVOKABLE QskTabButton * currentButton()
Q_INVOKABLE const QskTabButton * currentButton() const
Q_INVOKABLE QString currentButtonText() const
Q_INVOKABLE QString buttonTextAt(int index) const
int indexOf(const QskTabButton * tabButton) const
Q_INVOKABLE int indexOf(QskTabButton * button) const
QskAspect::Placement effectivePlacement() const override

Protected Functions

  Name
void componentComplete() override
QskAspect::Subcontrol substitutedSubcontrol(QskAspect::Subcontrol subControl) const override

Public Properties

  Name
Qsk::Position tabPosition
Qt::Orientation orientation
bool autoScrollFocusButton
bool autoFitTabs
int count
int currentIndex
QskTextOptions textOptions

Public Attributes

  Name
const QskAspect::Subcontrol Panel

Public Slots Documentation

slot setCurrentIndex

void setCurrentIndex(
    int index
)

Public Signals Documentation

signal currentIndexChanged

void currentIndexChanged(
    int index
)

signal buttonClicked

void buttonClicked(
    int index
)

signal countChanged

void countChanged(
    int 
)

signal textOptionsChanged

void textOptionsChanged(
    const QskTextOptions & 
)

signal tabPositionChanged

void tabPositionChanged(
    Qsk::Position 
)

signal autoScrollFocusedButtonChanged

void autoScrollFocusedButtonChanged(
    bool 
)

signal autoFitTabsChanged

void autoFitTabsChanged(
    bool 
)

Public Functions Documentation

function QskTabBar

QskTabBar(
    QQuickItem * parent =nullptr
)

function QskTabBar

QskTabBar(
    Qsk::Position position,
    QQuickItem * parent =nullptr
)

function ~QskTabBar

~QskTabBar() override

function setTabPosition

void setTabPosition(
    Qsk::Position position
)

function tabPosition

Qsk::Position tabPosition() const

function orientation

Qt::Orientation orientation() const

function setAutoScrollFocusedButton

void setAutoScrollFocusedButton(
    bool on
)

function autoScrollFocusButton

bool autoScrollFocusButton() const

function setAutoFitTabs

void setAutoFitTabs(
    bool on
)

function autoFitTabs

bool autoFitTabs() const

function ensureButtonVisible

void ensureButtonVisible(
    const QskTabButton * button
)

function setTextOptions

void setTextOptions(
    const QskTextOptions & options
)

function textOptions

QskTextOptions textOptions() const

function addTab

Q_INVOKABLE int addTab(
    const QString & text
)

function insertTab

Q_INVOKABLE int insertTab(
    int index,
    const QString & text
)

function addTab

Q_INVOKABLE int addTab(
    QskTabButton * button
)

function insertTab

Q_INVOKABLE int insertTab(
    int index,
    QskTabButton * button
)

function removeTab

Q_INVOKABLE void removeTab(
    int index
)

function clear

Q_INVOKABLE void clear(
    bool autoDelete =false
)

function isTabEnabled

bool isTabEnabled(
    int index
) const

function setTabEnabled

void setTabEnabled(
    int index,
    bool enabled
)

function currentIndex

int currentIndex() const

function count

int count() const

function buttonAt

Q_INVOKABLE QskTabButton * buttonAt(
    int position
)

function buttonAt

Q_INVOKABLE const QskTabButton * buttonAt(
    int position
) const

function currentButton

Q_INVOKABLE QskTabButton * currentButton()

function currentButton

Q_INVOKABLE const QskTabButton * currentButton() const

function currentButtonText

Q_INVOKABLE QString currentButtonText() const

function buttonTextAt

Q_INVOKABLE QString buttonTextAt(
    int index
) const

function indexOf

inline int indexOf(
    const QskTabButton * tabButton
) const

function indexOf

Q_INVOKABLE int indexOf(
    QskTabButton * button
) const

function effectivePlacement

QskAspect::Placement effectivePlacement() const override

Protected Functions Documentation

function componentComplete

void componentComplete() override

function substitutedSubcontrol

QskAspect::Subcontrol substitutedSubcontrol(
    QskAspect::Subcontrol subControl
) const override

Public Property Documentation

property tabPosition

Qsk::Position tabPosition;

property orientation

Qt::Orientation orientation;

property autoScrollFocusButton

bool autoScrollFocusButton;

property autoFitTabs

bool autoFitTabs;

property count

int count;

property currentIndex

int currentIndex;

property textOptions

QskTextOptions textOptions;

Public Attributes Documentation

variable Panel

static const QskAspect::Subcontrol Panel;

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