kdk::KTableHeaderView(3)

๐Ÿ“ฆ version 3.0.1.2, in arch rolling, ubuntu resolute, ubuntu stonking

๐Ÿ’– kdk::KTableHeaderView ๐Ÿ’–

okay bestie, gather round, because today we're talking about kdk::KTableHeaderView from the kdk crew โ€” it's a header view, it's in the Library Functions Manual, and it is literally the glow-up your table headers have been waiting for. she Inherits QHeaderView, so she came in with good genes, and she's out here painting, clicking, and checking states like a whole main character. periodt. ๐Ÿ‘‘


โœจ SYNOPSIS โœจ

no cap, here's the whole vibe at a glance:

Inherits QHeaderView.

๐ŸŒธ Public Slots ๐ŸŒธ

  • void checkStateChangeSlot (int iState) โ€” the slot that catches a state change. yes she takes an int iState. she's ready. ๐Ÿ’…

๐Ÿ”ฅ Signals ๐Ÿ”ฅ

  • void checkStateChange (int state) โ€” fires when the check state changes, and it's bringing that int state with it.
  • void clickedHeader (int column) โ€” fires when you click a header. tells you which int column got clicked. iconic behaviour, honestly.

๐Ÿซถ Public Member Functions ๐Ÿซถ

  • KTableHeaderView (Qt::Orientation orientation, QWidget *parent=nullptr) โ€” KTableHeaderView ๆž„้€ ๅ‡ฝๆ•ฐ (that's the constructor, babe ๐ŸŽ€)
  • void setTitle (QStringList list) โ€” ่ฎพ็ฝฎๆฐดๅนณๆ ‡้ข˜ (sets the horizontal titles โœจ)
  • void setMenu (QMenu *menu, int column) โ€” ่ฎพ็ฝฎmenu (sets the menu ๐Ÿ“)

๐Ÿงš Protected Member Functions ๐Ÿงš

these ones are for the inner circle only, bestie โ€” protected, so the class itself (or its subclasses) gets to run them:

  • void paintSection (QPainter *painter, const QRect &rect, int logicalIndex) const
  • void mousePressEvent (QMouseEvent *e)
  • void mouseReleaseEvent (QMouseEvent *e)
  • bool event (QEvent *e)

๐ŸŽ€ Constructor & Destructor Documentation ๐ŸŽ€

๐ŸŒˆ kdk::KTableHeaderView::KTableHeaderView (Qt::Orientation orientation, QWidget * parent = nullptr)

KTableHeaderView ๆž„้€ ๅ‡ฝๆ•ฐ โ€” yep, it's the constructor, and she takes two things:

Parameters

  • orientation โ€” ๆ–นๅ‘ (the orientation, like which way the header goes ๐Ÿฆ‹)
  • parent โ€” ็ˆถ็ฑปๅฏน่ฑก (the parent object ๐Ÿ’œ)

๐Ÿ’ซ Member Function Documentation ๐Ÿ’ซ

๐Ÿ“ void kdk::KTableHeaderView::setMenu (QMenu * menu, int column)

่ฎพ็ฝฎmenu โ€” give it a menu, and tell it which column that menu belongs to. simple as.

Parameters

  • menu
  • column

โญ void kdk::KTableHeaderView::setTitle (QStringList list)

่ฎพ็ฝฎๆฐดๅนณๆ ‡้ข˜ โ€” feed it a QStringList and boom, horizontal titles are set. the way that she just takes a QStringList and does the thing? obsessed. ๐Ÿ˜ญ

Parameters

  • list

๐Ÿ‘‘ Author ๐Ÿ‘‘

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. (yes girl, a robot wrote this and she ATE ๐Ÿซถโœจ)


and that's the whole page, bestie โ€” sending you off with the official receipts: this is from LIBKYSDK-APPLICATIONS, Version version:3.0, filed under kdk::KTableHeaderView(3). go forth and slay your table headers. ๐Ÿ’–๐ŸŽ€๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from