The QetGraphicsHeaderItem class The header have a few parameters to edit her visual aspect. Margins, to edit the margin between the cell and the text. Text font. Text alignment in the cell These three parameters are not settable directly with the header but trough the model to be displayed by the header. Header search these parameters only in the section 0 for cell of header. By consequence, set data in other section is useless also these parameter can't be set individually for each cell. The margins is stored in the model in index Qt::UserRole+1 and for value a QString. See QETUtils::marginsFromString and QETUtils::marginsToString.
More...
#include <qetgraphicsheaderitem.h>
Inherits QGraphicsObject.
|
enum | { Type = UserType + 1301
} |
|
The QetGraphicsHeaderItem class The header have a few parameters to edit her visual aspect. Margins, to edit the margin between the cell and the text. Text font. Text alignment in the cell These three parameters are not settable directly with the header but trough the model to be displayed by the header. Header search these parameters only in the section 0 for cell of header. By consequence, set data in other section is useless also these parameter can't be set individually for each cell. The margins is stored in the model in index Qt::UserRole+1 and for value a QString. See QETUtils::marginsFromString and QETUtils::marginsToString.
◆ anonymous enum
◆ QetGraphicsHeaderItem()
QetGraphicsHeaderItem::QetGraphicsHeaderItem |
( |
QGraphicsItem * |
parent = nullptr | ) |
|
◆ adjustSize()
void QetGraphicsHeaderItem::adjustSize |
( |
| ) |
|
|
private |
◆ boundingRect()
QRectF QetGraphicsHeaderItem::boundingRect |
( |
| ) |
const |
|
overridevirtual |
◆ fromXml()
void QetGraphicsHeaderItem::fromXml |
( |
const QDomElement & |
element | ) |
|
◆ headerDataChanged()
void QetGraphicsHeaderItem::headerDataChanged |
( |
Qt::Orientations |
orientation, |
|
|
int |
first, |
|
|
int |
last |
|
) |
| |
|
private |
◆ heightResized
void QetGraphicsHeaderItem::heightResized |
( |
| ) |
|
|
signal |
◆ minimumSectionWidth()
QVector<int> QetGraphicsHeaderItem::minimumSectionWidth |
( |
| ) |
const |
|
inline |
◆ minimumWidth()
int QetGraphicsHeaderItem::minimumWidth |
( |
| ) |
const |
|
inline |
◆ model()
QAbstractItemModel * QetGraphicsHeaderItem::model |
( |
| ) |
const |
◆ modelReseted()
void QetGraphicsHeaderItem::modelReseted |
( |
| ) |
|
|
private |
◆ paint()
void QetGraphicsHeaderItem::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionGraphicsItem * |
option, |
|
|
QWidget * |
widget |
|
) |
| |
|
overridevirtual |
QetGraphicsHeaderItem::paint Reimplemented from QGraphicsObject::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) const;.
- Parameters
-
◆ rect()
QRect QetGraphicsHeaderItem::rect |
( |
| ) |
const |
◆ resizeSection()
void QetGraphicsHeaderItem::resizeSection |
( |
int |
logicalIndex, |
|
|
int |
size |
|
) |
| |
◆ sectionResized
void QetGraphicsHeaderItem::sectionResized |
( |
int |
logicalIndex, |
|
|
int |
size |
|
) |
| |
|
signal |
◆ sectionSize()
int QetGraphicsHeaderItem::sectionSize |
( |
int |
logical_index | ) |
const |
◆ setModel()
void QetGraphicsHeaderItem::setModel |
( |
QAbstractItemModel * |
model = nullptr | ) |
|
◆ setUpBoundingRect()
void QetGraphicsHeaderItem::setUpBoundingRect |
( |
| ) |
|
|
private |
◆ setUpMinimumSectionsSize()
void QetGraphicsHeaderItem::setUpMinimumSectionsSize |
( |
| ) |
|
|
private |
◆ toXml()
QDomElement QetGraphicsHeaderItem::toXml |
( |
QDomDocument & |
document | ) |
const |
◆ type()
int QetGraphicsHeaderItem::type |
( |
| ) |
const |
|
inlineoverride |
◆ xmlTagName()
static QString QetGraphicsHeaderItem::xmlTagName |
( |
| ) |
|
|
inlinestatic |
◆ m_bounding_rect
QRectF QetGraphicsHeaderItem::m_bounding_rect |
|
private |
◆ m_current_rect
QRect QetGraphicsHeaderItem::m_current_rect |
|
private |
◆ m_current_sections_width
QVector<int> QetGraphicsHeaderItem::m_current_sections_width |
|
private |
◆ m_minimum_section_height
int QetGraphicsHeaderItem::m_minimum_section_height =1 |
|
private |
◆ m_minimum_width
int QetGraphicsHeaderItem::m_minimum_width =1 |
|
private |
◆ m_model
QAbstractItemModel* QetGraphicsHeaderItem::m_model = nullptr |
|
private |
◆ m_section_height
int QetGraphicsHeaderItem::m_section_height =1 |
|
private |
◆ m_sections_minimum_width
QVector<int> QetGraphicsHeaderItem::m_sections_minimum_width |
|
private |
The documentation for this class was generated from the following files: