QHeader
Section: Misc. Reference Manual Pages (3qt)
Updated: 2 February 2007
Index
Return to Main Contents
NAME
QHeader - Header row or column, e.g. for tables and listviews
SYNOPSIS
#include <qheader.h>
Inherits QWidget.
Public Members
QHeader ( QWidget * parent = 0, const char * name = 0 )
QHeader ( int n, QWidget * parent = 0, const char * name = 0 )
~QHeader ()
int addLabel ( const QString & s, int size = -1 )
int addLabel ( const QIconSet & iconset, const QString & s, int size = -1 )
void removeLabel ( int section )
virtual void setLabel ( int section, const QString & s, int size = -1 )
virtual void setLabel ( int section, const QIconSet & iconset, const QString & s, int size = -1 )
QString label ( int section ) const
QIconSet * iconSet ( int section ) const
virtual void setOrientation ( Orientation )
Orientation orientation () const
virtual void setTracking ( bool enable )
bool tracking () const
virtual void setClickEnabled ( bool enable, int section = -1 )
virtual void setResizeEnabled ( bool enable, int section = -1 )
virtual void setMovingEnabled ( bool )
virtual void setStretchEnabled ( bool b, int section )
void setStretchEnabled ( bool b )
bool isClickEnabled ( int section = -1 ) const
bool isResizeEnabled ( int section = -1 ) const
bool isMovingEnabled () const
bool isStretchEnabled () const
bool isStretchEnabled ( int section ) const
void resizeSection ( int section, int s )
int sectionSize ( int section ) const
int sectionPos ( int section ) const
int sectionAt ( int pos ) const
int count () const
int headerWidth () const
QRect sectionRect ( int section ) const
virtual void setCellSize ( int section, int s ) (obsolete)
int cellSize ( int i ) const (obsolete)
int cellPos ( int i ) const (obsolete)
int cellAt ( int pos ) const (obsolete)
int offset () const
int mapToSection ( int index ) const
int mapToIndex ( int section ) const
int mapToLogical ( int a ) const (obsolete)
int mapToActual ( int l ) const (obsolete)
void moveSection ( int section, int toIndex )
virtual void moveCell ( int fromIdx, int toIdx ) (obsolete)
void setSortIndicator ( int section, bool ascending = TRUE ) (obsolete)
void setSortIndicator ( int section, SortOrder order )
int sortIndicatorSection () const
SortOrder sortIndicatorOrder () const
void adjustHeaderSize ()
Public Slots
virtual void setOffset ( int pos )
Signals
void clicked ( int section )
void pressed ( int section )
void released ( int section )
void sizeChange ( int section, int oldSize, int newSize )
void indexChange ( int section, int fromIndex, int toIndex )
void sect