class Card
Card composition with owned header, content, footer and action layouts.
The stock card is one box. The root owns the vertical padding and the gaps, and the header, content and footer are slots that only add horizontal padding. They are layouts on the card itself rather than nested widgets, so there is nothing between the card and a control that could clip it when the control shifts under the pointer.
Inherits from QFrame
Functions
Card
public Card(QWidget * parent)
~Card
public void ~Card()
setTitle
public void setTitle(const QString & title)
setDescription
public void setDescription(const QString & description)
setFooterBorder
public void setFooterBorder(bool enabled)
Draws a rule above the footer row and gives it the padding that rule implies. The stock footer only does this when the caller adds a border to it, so it is off by default and the card carries one fill from top to bottom.
content
public QVBoxLayout & content()
Returned layouts are borrowed and remain owned by the card. Each joins the card's layout the first time it is requested and leaves no gap while it is empty.
footer
public QHBoxLayout & footer()
action
public QVBoxLayout & action()
paintEvent
protected void paintEvent(QPaintEvent * )
changeEvent
protected void changeEvent(QEvent * )