Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QHeaderView Class Reference

The QHeaderView class provides a header row or header column for item views. More...

Inheritance diagram for QtGui.QHeaderView:
Collaboration diagram for QtGui.QHeaderView:

Public Types

enum  ResizeMode {
  Custom = 2, Fixed = 2, Interactive = 0, ResizeToContents = 3,
  Stretch = 1
}
  More...
 
- Public Types inherited from QtGui.QAbstractItemView
enum  CursorAction {
  MoveDown = 1, MoveEnd = 5, MoveHome = 4, MoveLeft = 2,
  MoveNext = 8, MovePageDown = 7, MovePageUp = 6, MovePrevious = 9,
  MoveRight = 3, MoveUp = 0
}
  More...
 
enum  DragDropMode {
  DragDrop = 3, DragOnly = 1, DropOnly = 2, InternalMove = 4,
  NoDragDrop = 0
}
  More...
 
enum  DropIndicatorPosition { AboveItem = 1, BelowItem = 2, OnItem = 0, OnViewport = 3 }
  More...
 
enum  EditTrigger {
  AllEditTriggers = 31, AnyKeyPressed = 16, CurrentChanged = 1, DoubleClicked = 2,
  EditKeyPressed = 8, NoEditTriggers = 0, SelectedClicked = 4
}
  More...
 
enum  ScrollHint { EnsureVisible = 0, PositionAtBottom = 2, PositionAtCenter = 3, PositionAtTop = 1 }
 
enum  ScrollMode { ScrollPerItem = 0, ScrollPerPixel = 1 }
  More...
 
enum  SelectionBehavior { SelectColumns = 2, SelectItems = 0, SelectRows = 1 }
 
enum  SelectionMode {
  ContiguousSelection = 4, ExtendedSelection = 3, MultiSelection = 2, NoSelection = 0,
  SingleSelection = 1
}
  More...
 
enum  State {
  AnimatingState = 6, CollapsingState = 5, DragSelectingState = 2, DraggingState = 1,
  EditingState = 3, ExpandingState = 4, NoState = 0
}
  More...
 

Public Member Functions

 QHeaderView (Qt.Orientation orientation, QWidget parent=null)
 
 
override void CreateProxy ()
 
new int Count ()
 
 
new Qt.AlignmentFlag defaultAlignment ()
 
override void DoItemsLayout ()
 
override bool OnEvent (QEvent e)
 
 
new void HeaderDataChanged (Qt.Orientation orientation, int logicalFirst, int logicalLast)
 
 
new int HiddenSectionCount ()
 
 
new void HideSection (int logicalIndex)
 
 
override QModelIndex IndexAt (QPoint p)
 
 
new bool IsClickable ()
 
 
new bool IsMovable ()
 
 
new bool IsSectionHidden (int logicalIndex)
 
 
new int Length ()
 
 
new int LogicalIndex (int visualIndex)
 
 
new int LogicalIndexAt (QPoint pos)
 
 
new int LogicalIndexAt (int position)
 
 
new int LogicalIndexAt (int x, int y)
 
 
new void MoveSection (int from, int to)
 
 
new Qt.Orientation Orientation ()
 
 
override void Reset ()
 
 
new QHeaderView.ResizeMode resizeMode (int logicalIndex)
 
 
new void ResizeSection (int logicalIndex, int size)
 
 
new void ResizeSections (QHeaderView.ResizeMode mode)
 
 
new bool RestoreState (QByteArray state)
 
 
new QByteArray SaveState ()
 
 
override void ScrollTo (QModelIndex index, QAbstractItemView.ScrollHint hint)
 
 
new int SectionPosition (int logicalIndex)
 
 
new int SectionSize (int logicalIndex)
 
 
new int SectionSizeHint (int logicalIndex)
 
 
new int SectionViewportPosition (int logicalIndex)
 
 
new bool SectionsHidden ()
 
 
new bool SectionsMoved ()
 
 
new void SetClickable (bool clickable)
 
 
new void SetDefaultAlignment (Qt.AlignmentFlag alignment)
 
new void SetMovable (bool movable)
 
 
new void SetOffsetToLastSection ()
 
 
new void SetOffsetToSectionPosition (int visualIndex)
 
 
new void SetResizeMode (QHeaderView.ResizeMode mode)
 
 
new void SetResizeMode (int logicalIndex, QHeaderView.ResizeMode mode)
 
 
new void SetSectionHidden (int logicalIndex, bool hide)
 
 
new void SetSortIndicator (int logicalIndex, Qt.SortOrder order)
 
 
new void ShowSection (int logicalIndex)
 
 
override QSize SizeHint ()
 
 
new Qt.SortOrder SortIndicatorOrder ()
 
 
new int SortIndicatorSection ()
 
 
new int StretchSectionCount ()
 
 
new void SwapSections (int first, int second)
 
 
new int VisualIndex (int logicalIndex)
 
 
new int VisualIndexAt (int position)
 
 
override QRect VisualRect (QModelIndex index)
 
 
new void Dispose ()
 
- Public Member Functions inherited from QtGui.QAbstractItemView
 QAbstractItemView (QWidget parent=null)
 
 
new void ClearSelection ()
 
 
new void ClosePersistentEditor (QModelIndex index)
 
 
new void Edit (QModelIndex index)
 
 
new QAbstractItemView.EditTrigger editTriggers ()
 
override bool OnEvent (QEvent @event)
 
 
new QWidget IndexWidget (QModelIndex index)
 
 
override object InputMethodQuery (Qt.InputMethodQuery query)
 
 
new QAbstractItemDelegate ItemDelegate ()
 
 
new QAbstractItemDelegate ItemDelegate (QModelIndex index)
 
 
new QAbstractItemDelegate ItemDelegateForColumn (int column)
 
 
new QAbstractItemDelegate ItemDelegateForRow (int row)
 
 
virtual void KeyboardSearch (string search)
 
 
new void OpenPersistentEditor (QModelIndex index)
 
 
new void ScrollToBottom ()
 
 
new void ScrollToTop ()
 
 
virtual void SelectAll ()
 
 
new void SetEditTriggers (QAbstractItemView.EditTrigger triggers)
 
new void SetIndexWidget (QModelIndex index, QWidget widget)
 
 
new void SetItemDelegate (QAbstractItemDelegate @delegate)
 
 
new void SetItemDelegateForColumn (int column, QAbstractItemDelegate @delegate)
 
 
new void SetItemDelegateForRow (int row, QAbstractItemDelegate @delegate)
 
 
virtual int SizeHintForColumn (int column)
 
 
new QSize SizeHintForIndex (QModelIndex index)
 
 
virtual int SizeHintForRow (int row)
 
 
new void Update (QModelIndex index)
 
 
new void Dispose ()
 
- Public Member Functions inherited from QtGui.QAbstractScrollArea
 QAbstractScrollArea (QWidget parent=null)
 
 
new void AddScrollBarWidget (QWidget widget, Qt.AlignmentFlag alignment)
 
 
new QSize MaximumViewportSize ()
 
 
override QSize MinimumSizeHint ()
 
 
new
System.Collections.Generic.List
< QWidget
ScrollBarWidgets (Qt.AlignmentFlag alignment)
 
 
new void Dispose ()
 
- Public Member Functions inherited from QtGui.QFrame
 QFrame (QWidget parent=null, Qt.WindowType f=0)
 
 
new void Dispose ()
 
- Public Member Functions inherited from QtGui.QWidget
 QWidget (QWidget parent=null, Qt.WindowType f=0)
 
 
override void CreateProxy ()
 
new
System.Collections.Generic.List
< QAction
Actions ()
 
 
new void ActivateWindow ()
 
 
new void AddAction (QAction action)
 
 
new void AddActions (System.Collections.Generic.List< QAction > actions)
 
 
new void AdjustSize ()
 
 
new QWidget ChildAt (QPoint p)
 
 
new QWidget ChildAt (int x, int y)
 
 
new void ClearFocus ()
 
 
new void ClearMask ()
 
 
new bool Close ()
 
 
new QRect ContentsRect ()
 
 
new void CreateWinId ()
 
virtual int DevType ()
 
new NativeULong EffectiveWinId ()
 
 
new void EnsurePolished ()
 
 
override bool OnEvent (QEvent arg1)
 
 
new QWidget FocusWidget ()
 
 
new QFont font ()
 
new QFontInfo FontInfo ()
 
 
new QFontMetrics FontMetrics ()
 
 
new QRect geometry ()
 
new void GetContentsMargins (ref int left, ref int top, ref int right, ref int bottom)
 
 
virtual System.IntPtr GetDC ()
 
 
new void GrabGesture (Qt.GestureType type, Qt.GestureFlag flags=0)
 
 
new void GrabKeyboard ()
 
 
new void GrabMouse ()
 
 
new void GrabMouse (QCursor arg1)
 
 
new int GrabShortcut (QKeySequence key, Qt.ShortcutContext context=Qt.ShortcutContext.WindowShortcut)
 
 
new QGraphicsProxyWidget GraphicsProxyWidget ()
 
 
virtual int HeightForWidth (int arg1)
 
 
new void Hide ()
 
 
new Qt.InputMethodHint inputMethodHints ()
 
new void InsertAction (QAction before, QAction action)
 
 
new void InsertActions (QAction before, System.Collections.Generic.List< QAction > actions)
 
 
new NativeULong InternalWinId ()
 
new bool IsAncestorOf (QWidget child)
 
 
new bool IsEnabledTo (QWidget arg1)
 
 
new bool IsEnabledToTLW ()
 
 
new bool IsHidden ()
 
 
new bool IsLeftToRight ()
 
new bool IsRightToLeft ()
 
new bool IsTopLevel ()
 
 
new bool IsVisibleTo (QWidget arg1)
 
 
new bool IsWindow ()
 
 
new void Lower ()
 
 
new QPoint MapFrom (QWidget arg1, QPoint arg2)
 
 
new QPoint MapFromGlobal (QPoint arg1)
 
 
new QPoint MapFromParent (QPoint arg1)
 
 
new QPoint MapTo (QWidget arg1, QPoint arg2)
 
 
new QPoint MapToGlobal (QPoint arg1)
 
 
new QPoint MapToParent (QPoint arg1)
 
 
new void Move (int x, int y)
 
new QWidget NativeParentWidget ()
 
 
new QWidget NextInFocusChain ()
 
 
new void OverrideWindowFlags (Qt.WindowType type)
 
 
new void OverrideWindowState (Qt.WindowState state)
 
virtual QPaintEngine PaintEngine ()
 
 
new QPalette palette ()
 
new QWidget ParentWidget ()
 
 
new QWidget PreviousInFocusChain ()
 
 
new void Raise ()
 
 
virtual void ReleaseDC (System.IntPtr arg1)
 
 
new void ReleaseKeyboard ()
 
 
new void ReleaseMouse ()
 
 
new void ReleaseShortcut (int id)
 
 
new void RemoveAction (QAction action)
 
 
new void Render (IQPaintDevice target)
 
 
new void Render (QPainter painter)
 
 
new void Render (IQPaintDevice target, QPoint targetOffset)
 
 
new void Render (QPainter painter, QPoint targetOffset)
 
 
new void Render (IQPaintDevice target, QPoint targetOffset, QRegion sourceRegion, QWidget.RenderFlag renderFlags=QWidget.RenderFlag.DrawWindowBackground|QWidget.RenderFlag.DrawChildren)
 
 
new void Render (QPainter painter, QPoint targetOffset, QRegion sourceRegion, QWidget.RenderFlag renderFlags=QWidget.RenderFlag.DrawWindowBackground|QWidget.RenderFlag.DrawChildren)
 
 
new void Repaint ()
 
 
new void Repaint (QRect arg1)
 
 
new void Repaint (QRegion arg1)
 
 
new void Repaint (int x, int y, int w, int h)
 
 
new void Resize (int w, int h)
 
new bool RestoreGeometry (QByteArray geometry)
 
 
new QByteArray SaveGeometry ()
 
 
new void Scroll (int dx, int dy)
 
 
new void Scroll (int dx, int dy, QRect arg3)
 
 
new void SetAttribute (Qt.WidgetAttribute arg1, bool on=true)
 
 
new void SetBaseSize (int basew, int baseh)
 
new void SetContentsMargins (int left, int top, int right, int bottom)
 
 
new void SetDisabled (bool arg1)
 
 
new void SetFixedHeight (int h)
 
 
new void SetFixedSize (QSize arg1)
 
 
new void SetFixedSize (int w, int h)
 
 
new void SetFixedWidth (int w)
 
 
new void SetFocus ()
 
 
new void SetFocus (Qt.FocusReason reason)
 
 
new void SetGeometry (int x, int y, int w, int h)
 
new void SetHidden (bool hidden)
 
 
new void SetInputMethodHints (Qt.InputMethodHint hints)
 
new void SetMask (QBitmap arg1)
 
 
new void SetMaximumSize (int maxw, int maxh)
 
new void SetMinimumSize (int minw, int minh)
 
new void SetParent (QWidget parent)
 
 
new void SetParent (QWidget parent, Qt.WindowType f)
 
 
new void SetShortcutAutoRepeat (int id, bool enable=true)
 
 
new void SetShortcutEnabled (int id, bool enable=true)
 
 
new void SetShown (bool shown)
 
new void SetSizeIncrement (int w, int h)
 
new void SetSizePolicy (QSizePolicy.Policy horizontal, QSizePolicy.Policy vertical)
 
virtual void SetVisible (bool visible)
 
new void Show ()
 
 
new void ShowFullScreen ()
 
 
new void ShowMaximized ()
 
 
new void ShowMinimized ()
 
 
new void ShowNormal ()
 
 
new void StackUnder (QWidget arg1)
 
 
new bool TestAttribute (Qt.WidgetAttribute arg1)
 
 
new QWidget TopLevelWidget ()
 
 
new bool UnderMouse ()
 
 
new void UngrabGesture (Qt.GestureType type)
 
 
new void UnsetCursor ()
 
new void UnsetLayoutDirection ()
 
new void UnsetLocale ()
 
new void Update ()
 
 
new void Update (QRect arg1)
 
 
new void Update (QRegion arg1)
 
 
new void Update (int x, int y, int w, int h)
 
 
new void UpdateGeometry ()
 
 
new QRegion VisibleRegion ()
 
 
new NativeULong WinId ()
 
 
new QWidget Window ()
 
 
new Qt.WindowType WindowType ()
 
 
new void Dispose ()
 
new int ColorCount ()
 
new int Depth ()
 
new int HeightMM ()
 
new int LogicalDpiX ()
 
new int LogicalDpiY ()
 
new int NumColors ()
 
new bool PaintingActive ()
 
new int PhysicalDpiX ()
 
new int PhysicalDpiY ()
 
new int WidthMM ()
 
- Public Member Functions inherited from QtCore.QObject
 QObject (QObject parent=null)
 
 
new bool BlockSignals (bool b)
 
 
new
System.Collections.Generic.List
< QObject
Children ()
 
 
new bool Connect (QObject sender, string signal, string member, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
 
 
new void DeleteLater ()
 
 
new bool Disconnect (QObject receiver, string member=null)
 
 
new bool Disconnect (string signal=null, QObject receiver=null, string member=null)
 
 
new void DumpObjectInfo ()
 
 
new void DumpObjectTree ()
 
 
new
System.Collections.Generic.List
< QByteArray
DynamicPropertyNames ()
 
 
virtual bool EventFilter (QObject arg1, QEvent arg2)
 
 
new bool Inherits (string classname)
 
 
new void InstallEventFilter (QObject arg1)
 
 
new bool IsWidgetType ()
 
 
new void KillTimer (int id)
 
 
new object Property (string name)
 
 
new void RemoveEventFilter (QObject arg1)
 
 
new bool SetProperty (string name, object value)
 
 
new void SetUserData (uint id, QObjectUserData data)
 
new bool SignalsBlocked ()
 
 
new int StartTimer (int interval)
 
 
new QObjectUserData UserData (uint id)
 
new void Dispose ()
 
- Public Member Functions inherited from QtCore.Qt
delegate QTextStream FuncQTextStreamQTextStream (QTextStream qTextStream)
 
delegate string FuncStringQByteArray (QByteArray qByteArray)
 
delegate QByteArray FuncQByteArrayString (string @string)
 
delegate void ActionQtMsgTypeString (QtMsgType qtMsgType, string @string)
 
delegate QObject FuncQObject ()
 
- Public Member Functions inherited from QtGui.IQPaintDevice
new int ColorCount ()
 
new int Depth ()
 
int DevType ()
 
System.IntPtr GetDC ()
 
new int Height ()
 
new int HeightMM ()
 
new int LogicalDpiX ()
 
new int LogicalDpiY ()
 
new int NumColors ()
 
QPaintEngine PaintEngine ()
 
new bool PaintingActive ()
 
new int PhysicalDpiX ()
 
new int PhysicalDpiY ()
 
void ReleaseDC (System.IntPtr hdc)
 
new int Width ()
 
new int WidthMM ()
 

Static Public Member Functions

static string Tr (string s, string c=null)
 
static string Tr (string s, string c, int n)
 
static string TrUtf8 (string s, string c=null)
 
static string TrUtf8 (string s, string c, int n)
 
- Static Public Member Functions inherited from QtGui.QAbstractItemView
static string Tr (string s, string c=null)
 
static string Tr (string s, string c, int n)
 
static string TrUtf8 (string s, string c=null)
 
static string TrUtf8 (string s, string c, int n)
 
- Static Public Member Functions inherited from QtGui.QAbstractScrollArea
static string Tr (string s, string c=null)
 
static string Tr (string s, string c, int n)
 
static string TrUtf8 (string s, string c=null)
 
static string TrUtf8 (string s, string c, int n)
 
- Static Public Member Functions inherited from QtGui.QFrame
static string Tr (string s, string c=null)
 
static string Tr (string s, string c, int n)
 
static string TrUtf8 (string s, string c=null)
 
static string TrUtf8 (string s, string c, int n)
 
- Static Public Member Functions inherited from QtGui.QWidget
static QWidget Find (NativeULong arg1)
 
 
static QWidget KeyboardGrabber ()
 
 
static QWidget MouseGrabber ()
 
 
static void SetTabOrder (QWidget arg1, QWidget arg2)
 
 
static string Tr (string s, string c=null)
 
static string Tr (string s, string c, int n)
 
static string TrUtf8 (string s, string c=null)
 
static string TrUtf8 (string s, string c, int n)
 
- Static Public Member Functions inherited from QtCore.QObject
static bool Connect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod method, Qt.ConnectionType type=Qt.ConnectionType.AutoConnection)
 
 
static bool Connect (QObject sender, string signal, QObject receiver, string member, Qt.ConnectionType arg5=Qt.ConnectionType.AutoConnection)
 
 
static bool Disconnect (QObject sender, QMetaMethod signal, QObject receiver, QMetaMethod member)
 
 
static bool Disconnect (QObject sender, string signal, QObject receiver, string member)
 
 
static uint RegisterUserData ()
 
static string Tr (string s, string c=null)
 
 
static string Tr (string s, string c, int n)
 
 
static string TrUtf8 (string s, string c=null)
 
 
static string TrUtf8 (string s, string c, int n)
 
 
- Static Public Member Functions inherited from QtCore.Qt
static QDataStream Write (QDataStream s, object p)
 
static QDataStream Write (QDataStream arg1, QSizeF arg2)
 
static QTextStream Write (QTextStream s, Qt.FuncQTextStreamQTextStream f)
 
static QDataStream Write (QDataStream arg1, QPoint arg2)
 
static QDataStream Write (QDataStream arg1, QLineF arg2)
 
static QDataStream Write (QDataStream arg1, QPointF arg2)
 
static QDataStream Write (QDataStream arg1, QChar arg2)
 
static QDataStream Write (QDataStream arg1, QByteArray arg2)
 
static QDataStream Write (QDataStream arg1, QEasingCurve arg2)
 
static QDataStream Write (QDataStream arg1, QRectF arg2)
 
static QDataStream Write (QDataStream arg1, QDateTime arg2)
 
static QDataStream Write (QDataStream arg1, QUrl arg2)
 
static QDataStream Write (QDataStream arg1, QTime arg2)
 
static QDataStream Write (QDataStream arg1, QLocale arg2)
 
static QDataStream Write (QDataStream arg1, QBitArray arg2)
 
static QDataStream Write (QDataStream arg1, QUuid arg2)
 
static QDataStream Write (QDataStream arg1, QLine arg2)
 
static QDataStream Write (QDataStream arg1, QDate arg2)
 
static QDataStream Write (QDataStream @out, QRegExp regExp)
 
static QDataStream Write (QDataStream arg1, QRect arg2)
 
static QDataStream Write (QDataStream arg1, QSize arg2)
 
static QDataStream Write (QDataStream s, QVariant.Type p)
 
static QDataStream Write (QDataStream arg1, string arg2)
 
static QDataStream Write (QDataStream @out, System.Collections.Generic.List< string > list)
 
static QDataStream Read (QDataStream arg1, QChar arg2)
 
static QDataStream Read (QDataStream arg1, QLocale arg2)
 
static QDataStream Read (QDataStream arg1, QRect arg2)
 
static QDataStream Read (QDataStream arg1, QEasingCurve arg2)
 
static QDataStream Read (QDataStream arg1, QDate arg2)
 
static QDataStream Read (QDataStream arg1, QUrl arg2)
 
static QDataStream Read (QDataStream arg1, QUuid arg2)
 
static QTextStream Read (QTextStream s, Qt.FuncQTextStreamQTextStream f)
 
static QDataStream Read (QDataStream arg1, QLineF arg2)
 
static QDataStream Read (QDataStream arg1, QRectF arg2)
 
static QDataStream Read (QDataStream arg1, QPointF arg2)
 
static QDataStream Read (QDataStream arg1, QLine arg2)
 
static QDataStream Read (QDataStream arg1, QBitArray arg2)
 
static QDataStream Read (QDataStream arg1, QSize arg2)
 
static QDataStream Read (QDataStream arg1, QDateTime arg2)
 
static QDataStream Read (QDataStream arg1, QTime arg2)
 
static QDataStream Read (QDataStream arg1, QPoint arg2)
 
static QDataStream Read (QDataStream @in, QRegExp regExp)
 
static QDataStream Read (QDataStream s, object p)
 
static QDataStream Read (QDataStream arg1, QByteArray arg2)
 
static QDataStream Read (QDataStream arg1, QSizeF arg2)
 
static QDataStream Read (QDataStream arg1, string arg2)
 
static QDataStream Read (QDataStream s, QVariant.Type p)
 
static QDataStream Read (QDataStream @in, System.Collections.Generic.List< string > list)
 
static double qAcos (double v)
 
static void qAddPostRoutine (System.Action arg1)
 
static string qAppName ()
 
static double qAsin (double v)
 
static double qAtan (double v)
 
static double qAtan2 (double x, double y)
 
static void qBadAlloc ()
 
static int qCeil (double v)
 
static ushort qChecksum (string s, uint len)
 
static QByteArray qCompress (QByteArray data)
 
static QByteArray qCompress (QByteArray data, int compressionLevel=-1)
 
static QByteArray qCompress (Pointer< byte > data, int nbytes)
 
static QByteArray qCompress (Pointer< byte > data, int nbytes, int compressionLevel=-1)
 
static double qCos (double v)
 
static double qExp (double v)
 
static double qFabs (double v)
 
static double qFastCos (double x)
 
static double qFastSin (double x)
 
static string qFlagLocation (string method)
 
static int qFloor (double v)
 
static bool qFuzzyCompare (double p1, double p2)
 
static bool qFuzzyCompare (float p1, float p2)
 
static bool qFuzzyIsNull (double d)
 
static bool qFuzzyIsNull (float f)
 
static uint qHash (QBitArray key)
 
static uint qHash (QChar key)
 
static uint qHash (QStringRef key)
 
static uint qHash (QUrl url)
 
static uint qHash (QPersistentModelIndex index)
 
static uint qHash (QByteArray key)
 
static uint qHash (QModelIndex index)
 
static uint qHash (uint key)
 
static uint qHash (sbyte key)
 
static uint qHash (byte key)
 
static uint qHash (short key)
 
static uint qHash (NativeLong key)
 
static uint qHash (ushort key)
 
static uint qHash (long key)
 
static uint qHash (ulong key)
 
static uint qHash (int key)
 
static uint qHash (string key)
 
static uint qHash (NativeULong key)
 
static double qInf ()
 
static Qt.ActionQtMsgTypeString qInstallMsgHandler (Qt.ActionQtMsgTypeString arg1)
 
static int qIntCast (float f)
 
static int qIntCast (double f)
 
static bool qIsFinite (double d)
 
static bool qIsFinite (float f)
 
static bool qIsInf (float f)
 
static bool qIsInf (double d)
 
static bool qIsNaN (float f)
 
static bool qIsNaN (double d)
 
static bool qIsNull (float f)
 
static bool qIsNull (double d)
 
static double qLn (double v)
 
static double qPow (double x, double y)
 
static double qQNaN ()
 
static void qRegisterStaticPluginInstanceFunction (Qt.FuncQObject function)
 
static void qRemovePostRoutine (System.Action arg1)
 
static int qRound (double d)
 
static long qRound64 (double d)
 
static double qSNaN ()
 
static bool qSharedBuild ()
 
static double qSin (double v)
 
static double qSqrt (double v)
 
static bool qStringComparisonHelper (QStringRef s1, string s2)
 
static double qTan (double v)
 
static QByteArray qUncompress (QByteArray data)
 
static QByteArray qUncompress (Pointer< byte > data, int nbytes)
 
static string qVersion ()
 
static void Qbswap_helper (Pointer< byte > src, Pointer< byte > dest, int size)
 
static QByteArray Qgetenv (string varName)
 
static bool Qputenv (string varName, QByteArray value)
 
static int Qrand ()
 
static void Qsrand (uint seed)
 
static int Qstrcmp (QByteArray str1, QByteArray str2)
 
static int Qstrcmp (QByteArray str1, string str2)
 
static int Qstrcmp (string str1, QByteArray str2)
 
static int Qstrcmp (string str1, string str2)
 
static Pointer< sbyte > Qstrcpy (Pointer< sbyte > dst, string src)
 
static Pointer< sbyte > Qstrdup (string arg1)
 
static int Qstricmp (string arg1, string arg2)
 
static uint Qstrlen (string str)
 
static int Qstrncmp (string str1, string str2, uint len)
 
static Pointer< sbyte > Qstrncpy (Pointer< sbyte > dst, string src, uint len)
 
static int Qstrnicmp (string arg1, string arg2, uint len)
 
static uint Qstrnlen (string str, uint maxlen)
 
static string QtTrId (string id, int n=-1)
 

Protected Member Functions

 QHeaderView (System.Type dummy)
 
override void CurrentChanged (QModelIndex current, QModelIndex old)
 
 
override void DataChanged (QModelIndex topLeft, QModelIndex bottomRight)
 
 
new void OnGeometriesChanged ()
 
 
override int HorizontalOffset ()
 
 
new void InitStyleOption (QStyleOptionHeader option)
 
 
new void Initialize ()
 
new void InitializeSections ()
 
new void InitializeSections (int start, int end)
 
override bool IsIndexHidden (QModelIndex index)
 
 
override void OnMouseDoubleClickEvent (QMouseEvent e)
 
 
override void OnMouseMoveEvent (QMouseEvent e)
 
 
override void OnMousePressEvent (QMouseEvent e)
 
 
override void OnMouseReleaseEvent (QMouseEvent e)
 
 
override QModelIndex MoveCursor (QAbstractItemView.CursorAction arg1, Qt.KeyboardModifier arg2)
 
 
override void OnPaintEvent (QPaintEvent e)
 
 
virtual void PaintSection (QPainter painter, QRect rect, int logicalIndex)
 
 
new void ResizeSections ()
 
 
override void RowsInserted (QModelIndex parent, int start, int end)
 
 
override void ScrollContentsBy (int dx, int dy)
 
 
new void OnSectionAutoResize (int logicalIndex, QHeaderView.ResizeMode mode)
 
 
new void OnSectionClicked (int logicalIndex)
 
 
new void OnSectionCountChanged (int oldCount, int newCount)
 
 
new void OnSectionDoubleClicked (int logicalIndex)
 
 
new void OnSectionEntered (int logicalIndex)
 
 
new void OnSectionHandleDoubleClicked (int logicalIndex)
 
 
new void OnSectionMoved (int logicalIndex, int oldVisualIndex, int newVisualIndex)
 
 
new void OnSectionPressed (int logicalIndex)
 
 
new void OnSectionResized (int logicalIndex, int oldSize, int newSize)
 
 
virtual QSize SectionSizeFromContents (int logicalIndex)
 
 
new void SectionsAboutToBeRemoved (QModelIndex parent, int logicalFirst, int logicalLast)
 
 
new void SectionsInserted (QModelIndex parent, int logicalFirst, int logicalLast)
 
 
override void SetSelection (QRect rect, QItemSelectionModel.SelectionFlag flags)
 
 
new void OnSortIndicatorChanged (int logicalIndex, Qt.SortOrder order)
 
 
override void UpdateGeometries ()
 
 
new void UpdateSection (int logicalIndex)
 
override int VerticalOffset ()
 
 
override bool OnViewportEvent (QEvent e)
 
 
override QRegion VisualRegionForSelection (QItemSelection selection)
 
 
- Protected Member Functions inherited from QtGui.QAbstractItemView
 QAbstractItemView (System.Type dummy)
 
new void OnActivated (QModelIndex index)
 
 
new void OnClicked (QModelIndex index)
 
 
virtual void CloseEditor (QWidget editor, QAbstractItemDelegate.EndEditHint hint)
 
 
virtual void CommitData (QWidget editor)
 
 
new QPoint DirtyRegionOffset ()
 
 
new void DoAutoScroll ()
 
new void OnDoubleClicked (QModelIndex index)
 
 
override void OnDragEnterEvent (QDragEnterEvent @event)
 
 
override void OnDragLeaveEvent (QDragLeaveEvent @event)
 
 
override void OnDragMoveEvent (QDragMoveEvent @event)
 
 
override void OnDropEvent (QDropEvent @event)
 
 
new
QAbstractItemView.DropIndicatorPosition 
dropIndicatorPosition ()
 
 
virtual bool Edit (QModelIndex index, QAbstractItemView.EditTrigger trigger, QEvent @event)
 
 
virtual void EditorDestroyed (QObject editor)
 
 
new void OnEntered (QModelIndex index)
 
 
new void ExecuteDelayedItemsLayout ()
 
 
override void OnFocusInEvent (QFocusEvent @event)
 
 
override bool FocusNextPrevChild (bool next)
 
 
override void OnFocusOutEvent (QFocusEvent @event)
 
 
virtual void HorizontalScrollbarAction (int action)
 
virtual void HorizontalScrollbarValueChanged (int value)
 
override void OnInputMethodEvent (QInputMethodEvent @event)
 
 
override void OnKeyPressEvent (QKeyEvent @event)
 
 
override void OnMouseDoubleClickEvent (QMouseEvent @event)
 
 
override void OnMouseMoveEvent (QMouseEvent @event)
 
 
override void OnMousePressEvent (QMouseEvent @event)
 
 
override void OnMouseReleaseEvent (QMouseEvent @event)
 
 
new void OnPressed (QModelIndex index)
 
 
override void OnResizeEvent (QResizeEvent @event)
 
 
virtual void RowsAboutToBeRemoved (QModelIndex parent, int start, int end)
 
 
new void ScheduleDelayedItemsLayout ()
 
 
new void ScrollDirtyRegion (int dx, int dy)
 
 
virtual
System.Collections.Generic.List
< QModelIndex
SelectedIndexes ()
 
 
virtual void SelectionChanged (QItemSelection selected, QItemSelection deselected)
 
 
virtual
QItemSelectionModel.SelectionFlag 
SelectionCommand (QModelIndex index, QEvent @event=null)
 
 
new void SetDirtyRegion (QRegion region)
 
 
new void StartAutoScroll ()
 
virtual void StartDrag (Qt.DropAction supportedActions)
 
 
new void StopAutoScroll ()
 
override void OnTimerEvent (QTimerEvent @event)
 
 
virtual void UpdateEditorData ()
 
virtual void UpdateEditorGeometries ()
 
virtual void VerticalScrollbarAction (int action)
 
virtual void VerticalScrollbarValueChanged (int value)
 
virtual QStyleOptionViewItem ViewOptions ()
 
 
new void OnViewportEntered ()
 
 
override bool OnViewportEvent (QEvent @event)
 
 
- Protected Member Functions inherited from QtGui.QAbstractScrollArea
 QAbstractScrollArea (System.Type dummy)
 
override void OnContextMenuEvent (QContextMenuEvent arg1)
 
 
override void OnDragEnterEvent (QDragEnterEvent arg1)
 
 
override void OnDragLeaveEvent (QDragLeaveEvent arg1)
 
 
override void OnDragMoveEvent (QDragMoveEvent arg1)
 
 
override void OnDropEvent (QDropEvent arg1)
 
 
override void OnKeyPressEvent (QKeyEvent arg1)
 
 
override void OnResizeEvent (QResizeEvent arg1)
 
 
new void SetViewportMargins (QMargins margins)
 
 
new void SetViewportMargins (int left, int top, int right, int bottom)
 
 
new void SetupViewport (QWidget viewport)
 
 
override void OnWheelEvent (QWheelEvent arg1)
 
 
- Protected Member Functions inherited from QtGui.QFrame
 QFrame (System.Type dummy)
 
override void OnChangeEvent (QEvent arg1)
 
 
new void DrawFrame (QPainter arg1)
 
- Protected Member Functions inherited from QtGui.QWidget
 QWidget (System.Type dummy)
 
virtual void OnActionEvent (QActionEvent arg1)
 
 
virtual void OnCloseEvent (QCloseEvent arg1)
 
 
new void Create ()
 
 
new void Create (NativeULong arg1, bool initializeWindow=true, bool destroyOldWindow=true)
 
 
new void OnCustomContextMenuRequested (QPoint pos)
 
 
new void Destroy (bool destroyWindow=true, bool destroySubWindows=true)
 
 
virtual void EnabledChange (bool arg1)
 
virtual void OnEnterEvent (QEvent arg1)
 
 
virtual void OnFocusInEvent (QFocusEvent arg1)
 
 
new bool FocusNextChild ()
 
 
virtual void OnFocusOutEvent (QFocusEvent arg1)
 
 
new bool FocusPreviousChild ()
 
 
virtual void FontChange (QFont arg1)
 
virtual void OnHideEvent (QHideEvent arg1)
 
 
virtual void OnInputMethodEvent (QInputMethodEvent arg1)
 
 
virtual void OnKeyReleaseEvent (QKeyEvent arg1)
 
 
virtual void LanguageChange ()
 
 
virtual void OnLeaveEvent (QEvent arg1)
 
 
virtual int Metric (QPaintDevice.PaintDeviceMetric arg1)
 
 
virtual void OnMoveEvent (QMoveEvent arg1)
 
 
virtual void PaletteChange (QPalette arg1)
 
new void ResetInputContext ()
 
 
virtual void OnShowEvent (QShowEvent arg1)
 
 
virtual void StyleChange (QStyle arg1)
 
virtual void OnTabletEvent (QTabletEvent arg1)
 
 
new void UpdateMicroFocus ()
 
 
virtual void WindowActivationChange (bool arg1)
 
- Protected Member Functions inherited from QtCore.QObject
 QObject (System.Type dummy)
 
virtual void OnChildEvent (QChildEvent arg1)
 
 
virtual void ConnectNotify (string signal)
 
 
virtual void OnCustomEvent (QEvent arg1)
 
 
new void OnDestroyed (QObject arg1=null)
 
 
virtual void DisconnectNotify (string signal)
 
 
new int Receivers (string signal)
 
 
new QObject Sender ()
 
 
new int SenderSignalIndex ()
 
 
virtual void OnTimerEvent (QTimerEvent arg1)
 
 

Properties

Slot< System.Int32,
System.Int32, System.Int32 > 
SectionMoved
 
 
Slot< System.Int32,
System.Int32, System.Int32 > 
SectionResized
 
 
Slot< System.Int32 > SectionPressed
 
 
Slot< System.Int32 > SectionClicked
 
 
Slot< System.Int32 > SectionEntered
 
 
Slot< System.Int32 > SectionDoubleClicked
 
 
Slot< System.Int32, System.Int32 > SectionCountChanged
 
 
Slot< System.Int32 > SectionHandleDoubleClicked
 
 
Slot< System.Int32,
QHeaderView.ResizeMode
SectionAutoResize
 
 
Slot GeometriesChanged
 
 
Slot< System.Int32, Qt.SortOrderSortIndicatorChanged
 
 
override QAbstractItemModel Model [get, set]
 
 
new int Offset [get, set]
 
 
new bool ShowSortIndicator [get, set]
 
 
new bool HighlightSections [get, set]
 
 
new bool StretchLastSection [get, set]
 
 
new bool CascadingSectionResizes [get, set]
 
 
new int DefaultSectionSize [get, set]
 
 
new int MinimumSectionSize [get, set]
 
 
new Qt.AlignmentFlag DefaultAlignment [get, set]
 
 
static new QMetaObject StaticMetaObject [get]
 
new IQHeaderViewSignals Emit [get]
 
- Properties inherited from QtGui.QAbstractItemView
Slot< QModelIndexPressed
 
 
Slot< QModelIndexClicked
 
 
Slot< QModelIndexDoubleClicked
 
 
Slot< QModelIndexActivated
 
 
Slot< QModelIndexEntered
 
 
Slot ViewportEntered
 
 
new QModelIndex CurrentIndex [get, set]
 
 
new int HorizontalStepsPerItem [get, set]
 
 
virtual QAbstractItemModel Model [get, set]
 
 
virtual QModelIndex RootIndex [get, set]
 
 
virtual QItemSelectionModel SelectionModel [get, set]
 
 
new QAbstractItemView.State state [get, set]
 
 
new int VerticalStepsPerItem [get, set]
 
 
new bool AutoScroll [get, set]
 
 
new int AutoScrollMargin [get, set]
 
 
new EditTrigger EditTriggers [get, set]
 
 
new bool TabKeyNavigation [get, set]
 
 
new bool ShowDropIndicator [get, set]
 
 
new bool DragEnabled [get, set]
 
 
new bool DragDropOverwriteMode [get, set]
 
 
new DragDropMode dragDropMode [get, set]
 
 
new Qt.DropAction DefaultDropAction [get, set]
 
 
new bool AlternatingRowColors [get, set]
 
 
new SelectionMode selectionMode [get, set]
 
 
new SelectionBehavior selectionBehavior [get, set]
 
 
new QSize IconSize [get, set]
 
 
new Qt.TextElideMode TextElideMode [get, set]
 
 
new ScrollMode VerticalScrollMode [get, set]
 
 
new ScrollMode HorizontalScrollMode [get, set]
 
 
static new QMetaObject StaticMetaObject [get]
 
new IQAbstractItemViewSignals Emit [get]
 
- Properties inherited from QtGui.QAbstractScrollArea
virtual EventHandler
< QEventArgs< QEvent > > 
ViewportEvent
 
 
new QWidget CornerWidget [get, set]
 
 
new QScrollBar HorizontalScrollBar [get, set]
 
 
new QScrollBar VerticalScrollBar [get, set]
 
 
new QWidget Viewport [get, set]
 
 
override EventHandler
< QEventArgs< QPaintEvent > > 
PaintEvent
 
 
override EventHandler
< QEventArgs< QActionEvent > > 
ActionEvent
 
 
override EventHandler
< QEventArgs< QEvent > > 
ChangeEvent
 
 
override EventHandler
< QEventArgs< QCloseEvent > > 
CloseEvent
 
 
override EventHandler
< QEventArgs
< QContextMenuEvent > > 
ContextMenuEvent
 
 
override EventHandler
< QEventArgs< QDragEnterEvent > > 
DragEnterEvent
 
 
override EventHandler
< QEventArgs< QDragLeaveEvent > > 
DragLeaveEvent
 
 
override EventHandler
< QEventArgs< QDragMoveEvent > > 
DragMoveEvent
 
 
override EventHandler
< QEventArgs< QDropEvent > > 
DropEvent
 
 
override EventHandler
< QEventArgs< QEvent > > 
EnterEvent
 
 
override EventHandler
< QEventArgs< QFocusEvent > > 
FocusInEvent
 
 
override EventHandler
< QEventArgs< QFocusEvent > > 
FocusOutEvent
 
 
override EventHandler
< QEventArgs< QHideEvent > > 
HideEvent
 
 
override EventHandler
< QEventArgs
< QInputMethodEvent > > 
InputMethodEvent
 
 
override EventHandler
< QEventArgs< QKeyEvent > > 
KeyPressEvent
 
 
override EventHandler
< QEventArgs< QKeyEvent > > 
KeyReleaseEvent
 
 
override EventHandler
< QEventArgs< QEvent > > 
LeaveEvent
 
 
override EventHandler
< QEventArgs< QMouseEvent > > 
MouseDoubleClickEvent
 
 
override EventHandler
< QEventArgs< QMouseEvent > > 
MouseMoveEvent
 
 
override EventHandler
< QEventArgs< QMouseEvent > > 
MousePressEvent
 
 
override EventHandler
< QEventArgs< QMouseEvent > > 
MouseReleaseEvent
 
 
override EventHandler
< QEventArgs< QMoveEvent > > 
MoveEvent
 
 
override EventHandler
< QEventArgs< QResizeEvent > > 
ResizeEvent
 
 
override EventHandler
< QEventArgs< QShowEvent > > 
ShowEvent
 
 
override EventHandler
< QEventArgs< QTabletEvent > > 
TabletEvent
 
 
override EventHandler
< QEventArgs< QWheelEvent > > 
WheelEvent
 
 
new Qt.ScrollBarPolicy VerticalScrollBarPolicy [get, set]
 
 
new Qt.ScrollBarPolicy HorizontalScrollBarPolicy [get, set]
 
 
static new QMetaObject StaticMetaObject [get]
 
new IQAbstractScrollAreaSignals Emit [get]
 
- Properties inherited from QtGui.QFrame
new int FrameStyle [get, set]
 
 
new Shape FrameShape [get, set]
 
 
new Shadow FrameShadow [get, set]
 
 
new int LineWidth [get, set]
 
 
new int MidLineWidth [get, set]
 
 
new int FrameWidth [get]
 
 
new QRect FrameRect [get, set]
 
 
static new QMetaObject StaticMetaObject [get]
 
new IQFrameSignals Emit [get]
 
- Properties inherited from QtGui.QWidget
virtual EventHandler
< QEventArgs< QActionEvent > > 
ActionEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
ChangeEvent
 
 
virtual EventHandler
< QEventArgs< QCloseEvent > > 
CloseEvent
 
 
virtual EventHandler
< QEventArgs
< QContextMenuEvent > > 
ContextMenuEvent
 
 
virtual EventHandler
< QEventArgs< QDragEnterEvent > > 
DragEnterEvent
 
 
virtual EventHandler
< QEventArgs< QDragLeaveEvent > > 
DragLeaveEvent
 
 
virtual EventHandler
< QEventArgs< QDragMoveEvent > > 
DragMoveEvent
 
 
virtual EventHandler
< QEventArgs< QDropEvent > > 
DropEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
EnterEvent
 
 
virtual EventHandler
< QEventArgs< QFocusEvent > > 
FocusInEvent
 
 
virtual EventHandler
< QEventArgs< QFocusEvent > > 
FocusOutEvent
 
 
virtual EventHandler
< QEventArgs< QHideEvent > > 
HideEvent
 
 
virtual EventHandler
< QEventArgs
< QInputMethodEvent > > 
InputMethodEvent
 
 
virtual EventHandler
< QEventArgs< QKeyEvent > > 
KeyPressEvent
 
 
virtual EventHandler
< QEventArgs< QKeyEvent > > 
KeyReleaseEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
LeaveEvent
 
 
virtual EventHandler
< QEventArgs< QMouseEvent > > 
MouseDoubleClickEvent
 
 
virtual EventHandler
< QEventArgs< QMouseEvent > > 
MouseMoveEvent
 
 
virtual EventHandler
< QEventArgs< QMouseEvent > > 
MousePressEvent
 
 
virtual EventHandler
< QEventArgs< QMouseEvent > > 
MouseReleaseEvent
 
 
virtual EventHandler
< QEventArgs< QMoveEvent > > 
MoveEvent
 
 
virtual EventHandler
< QEventArgs< QPaintEvent > > 
PaintEvent
 
 
virtual EventHandler
< QEventArgs< QResizeEvent > > 
ResizeEvent
 
 
virtual EventHandler
< QEventArgs< QShowEvent > > 
ShowEvent
 
 
virtual EventHandler
< QEventArgs< QTabletEvent > > 
TabletEvent
 
 
virtual EventHandler
< QEventArgs< QWheelEvent > > 
WheelEvent
 
 
Slot< QPointCustomContextMenuRequested
 
 
new QPalette.ColorRole BackgroundRole [get, set]
 
 
new QMargins ContentsMargins [get, set]
 
 
new QWidget FocusProxy [get, set]
 
 
new QPalette.ColorRole ForegroundRole [get, set]
 
 
new QGraphicsEffect GraphicsEffect [get, set]
 
 
new QInputContext InputContext [get, set]
 
 
new QLayout Layout [get, set]
 
 
new QRegion Mask [get, set]
 
 
new QStyle Style [get, set]
 
 
new Qt.WindowType WindowFlags [get, set]
 
new string WindowRole [get, set]
 
 
new Qt.WindowState WindowState [get, set]
 
 
new bool Modal [get]
 
 
new Qt.WindowModality WindowModality [get, set]
 
 
new bool Enabled [get, set]
 
 
new QRect Geometry [get, set]
 
 
new QRect FrameGeometry [get]
 
 
new QRect NormalGeometry [get]
 
 
new int X [get]
 
 
new int Y [get]
 
 
new QPoint Pos [get, set]
 
 
new QSize FrameSize [get]
 
 
new QSize Size [get, set]
 
 
new int Width [get]
 
 
new int Height [get]
 
 
new QRect Rect [get]
 
 
new QRect ChildrenRect [get]
 
 
new QRegion ChildrenRegion [get]
 
 
new QSizePolicy SizePolicy [get, set]
 
 
new QSize MinimumSize [get, set]
 
 
new QSize MaximumSize [get, set]
 
 
new int MinimumWidth [get, set]
 
 
new int MinimumHeight [get, set]
 
 
new int MaximumWidth [get, set]
 
 
new int MaximumHeight [get, set]
 
 
new QSize SizeIncrement [get, set]
 
 
new QSize BaseSize [get, set]
 
 
new QPalette Palette [get, set]
 
 
new QFont Font [get, set]
 
 
new QCursor Cursor [get, set]
 
 
new bool MouseTracking [get, set]
 
 
new bool IsActiveWindow [get]
 
 
new Qt.FocusPolicy FocusPolicy [get, set]
 
 
new bool Focus [get]
 
 
new Qt.ContextMenuPolicy ContextMenuPolicy [get, set]
 
 
new bool UpdatesEnabled [get, set]
 
 
new bool Visible [get, set]
 
 
new bool Minimized [get]
 
 
new bool Maximized [get]
 
 
new bool FullScreen [get]
 
 
new bool AcceptDrops [get, set]
 
 
new string WindowTitle [get, set]
 
 
new QIcon WindowIcon [get, set]
 
 
new string WindowIconText [get, set]
 
 
new double WindowOpacity [get, set]
 
 
new bool WindowModified [get, set]
 
 
new string ToolTip [get, set]
 
 
new string StatusTip [get, set]
 
 
new string WhatsThis [get, set]
 
 
new string AccessibleName [get, set]
 
 
new string AccessibleDescription [get, set]
 
 
new Qt.LayoutDirection LayoutDirection [get, set]
 
 
new bool AutoFillBackground [get, set]
 
 
new string StyleSheet [get, set]
 
 
new QLocale Locale [get, set]
 
 
new string WindowFilePath [get, set]
 
 
new Qt.InputMethodHint InputMethodHints [get, set]
 
 
static new QMetaObject StaticMetaObject [get]
 
new ushort Painters [get, set]
 
new IQWidgetSignals Emit [get]
 
- Properties inherited from QtCore.QObject
virtual EventHandler
< QEventArgs< QChildEvent > > 
ChildEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
CustomEvent
 
 
virtual EventHandler
< QEventArgs< QEvent > > 
Event
 
 
virtual EventHandler
< QEventArgs< QTimerEvent > > 
TimerEvent
 
 
Slot< QObjectDestroyedQObject
 
Slot Destroyed
 
 
new QObject Parent [get, set]
 
 
virtual System.IntPtr SmokeObject [get, set]
 
new string ObjectName [get, set]
 
 
static new QMetaObject StaticMetaObject [get]
 
 
static new QMetaObject StaticQtMetaObject [get]
 
new IQObjectSignals Emit [get]
 

Additional Inherited Members

- Protected Attributes inherited from QtCore.QObject
object Q_EMIT = null
 
SmokeInvocation interceptor
 
readonly List< QEventHandler > eventFilters = new List<QEventHandler>()
 

Detailed Description

The QHeaderView class provides a header row or header column for item views.

A QHeaderView displays the headers used in item views such as the QTableView and QTreeView classes. It takes the place of Qt3's QHeader class previously used for the same purpose, but uses the Qt's model/view architecture for consistency with the item view classes.

The QHeaderView class is one of the Model/View Classes and is part of Qt's model/view framework.

The header gets the data for each section from the model using the QAbstractItemModel::headerData() function. You can set the data by using QAbstractItemModel::setHeaderData().

Each header has an orientation() and a number of sections, given by the count() function. A section refers to a part of the header - either a row or a column, depending on the orientation.

Sections can be moved and resized using moveSection() and resizeSection(); they can also be hidden and shown with hideSection() and showSection().

Each section of a header is described by a section ID, specified by its section(), and can be located at a particular visualIndex() in the header. A section can have a sort indicator set with setSortIndicator(); this indicates whether the items in the associated item view will be sorted in the order given by the section.

For a horizontal header the section is equivalent to a column in the model, and for a vertical header the section is equivalent to a row in the model.

Moving Header Sections

A header can be fixed in place, or made movable with setMovable(). It can be made clickable with setClickable(), and has resizing behavior in accordance with setResizeMode().

Note: Double-clicking on a header to resize a section only applies for visible rows.

A header will emit sectionMoved() if the user moves a section, sectionResized() if the user resizes a section, and sectionClicked() as well as sectionHandleDoubleClicked() in response to mouse clicks. A header will also emit sectionCountChanged() and sectionAutoResize().

You can identify a section using the logicalIndex() and logicalIndexAt() functions, or by its index position, using the visualIndex() and visualIndexAt() functions. The visual index will change if a section is moved, but the logical index will not change.

Appearance

QTableWidget and QTableView create default headers. If you want the headers to be visible, you can use setVisible().

Not all ItemDataRoles will have an effect on a QHeaderView. If you need to draw other roles, you can subclass QHeaderView and reimplement paintEvent(). QHeaderView respects the following item data roles: TextAlignmentRole, DisplayRole, FontRole, DecorationRole, ForegroundRole, and BackgroundRole.

Note: Each header renders the data for each section itself, and does not rely on a delegate. As a result, calling a header's setItemDelegate() function will have no effect.

See also Model/View Programming, QListView, QTableView, and QTreeView.

Member Enumeration Documentation

The resize mode specifies the behavior of the header sections. It can be set on the entire header view or on individual sections using setResizeMode().

The following values are obsolete:

See also setResizeMode(), stretchLastSection, and minimumSectionSize.

Enumerator:
Custom 

Use Fixed instead.

Fixed 

The user cannot resize the section. The section can only be resized programmatically using resizeSection(). The section size defaults to defaultSectionSize.

Interactive 

The user can resize the section. The section can also be resized programmatically using resizeSection(). The section size defaults to defaultSectionSize. (See also cascadingSectionResizes.)

ResizeToContents 

QHeaderView will automatically resize the section to its optimal size based on the contents of the entire column or row. The size cannot be changed by the user or programmatically. (This value was introduced in 4.2)

Stretch 

QHeaderView will automatically resize the section to fill the available space. The size cannot be changed by the user or programmatically.

Constructor & Destructor Documentation

QtGui.QHeaderView.QHeaderView ( System.Type  dummy)
protected
QtGui.QHeaderView.QHeaderView ( Qt.Orientation  orientation,
QWidget  parent = null 
)

Creates a new generic header with the given orientation and parent.

Member Function Documentation

new int QtGui.QHeaderView.Count ( )

Returns the number of sections in the header.

See also sectionCountChanged() and length().

override void QtGui.QHeaderView.CreateProxy ( )
virtual

Reimplemented from QtGui.QAbstractItemView.

override void QtGui.QHeaderView.CurrentChanged ( QModelIndex  current,
QModelIndex  old 
)
protectedvirtual

Reimplemented from QAbstractItemView::currentChanged().

Reimplemented from QtGui.QAbstractItemView.

override void QtGui.QHeaderView.DataChanged ( QModelIndex  topLeft,
QModelIndex  bottomRight 
)
protectedvirtual

This slot is called when items are changed in the model. The changed items are those from topLeft to bottomRight inclusive. If just one item is changed topLeft == bottomRight.

Reimplemented from QtGui.QAbstractItemView.

new Qt.AlignmentFlag QtGui.QHeaderView.defaultAlignment ( )
new void QtGui.QHeaderView.Dispose ( )
override void QtGui.QHeaderView.DoItemsLayout ( )
virtual

Reimplemented from QtGui.QAbstractItemView.

new void QtGui.QHeaderView.HeaderDataChanged ( Qt.Orientation  orientation,
int  logicalFirst,
int  logicalLast 
)

Updates the changed header sections with the given orientation, from logicalFirst to logicalLast inclusive.

new int QtGui.QHeaderView.HiddenSectionCount ( )

Returns the number of sections in the header that has been hidden.

This function was introduced in Qt 4.1.

See also setSectionHidden() and isSectionHidden().

new void QtGui.QHeaderView.HideSection ( int  logicalIndex)

Hides the section specified by logicalIndex.

See also showSection(), isSectionHidden(), hiddenSectionCount(), and setSectionHidden().

override int QtGui.QHeaderView.HorizontalOffset ( )
protectedvirtual

Reimplemented from QAbstractItemView::horizontalOffset().

Returns the horizontal offset of the header. This is 0 for vertical headers.

See also offset().

Implements QtGui.QAbstractItemView.

override QModelIndex QtGui.QHeaderView.IndexAt ( QPoint  point)
virtual

Returns the model index of the item at the viewport coordinates point.

In the base class this is a pure virtual function.

See also visualRect().

Implements QtGui.QAbstractItemView.

new void QtGui.QHeaderView.Initialize ( )
protected
new void QtGui.QHeaderView.InitializeSections ( )
protected
new void QtGui.QHeaderView.InitializeSections ( int  start,
int  end 
)
protected
new void QtGui.QHeaderView.InitStyleOption ( QStyleOptionHeader  option)
protected

Initialize option with the values from this QHeaderView. This method is useful for subclasses when they need a QStyleOptionHeader, but do not want to fill in all the information themselves.

See also QStyleOption::initFrom().

new bool QtGui.QHeaderView.IsClickable ( )

Returns true if the header is clickable; otherwise returns false. A clickable header could be set up to allow the user to change the representation of the data in the view related to the header.

See also setClickable().

override bool QtGui.QHeaderView.IsIndexHidden ( QModelIndex  index)
protectedvirtual

Returns true if the item referred to by the given index is hidden in the view, otherwise returns false.

Hiding is a view specific feature. For example in TableView a column can be marked as hidden or a row in the TreeView.

In the base class this is a pure virtual function.

Implements QtGui.QAbstractItemView.

new bool QtGui.QHeaderView.IsMovable ( )

Returns true if the header can be moved by the user; otherwise returns false.

See also setMovable().

new bool QtGui.QHeaderView.IsSectionHidden ( int  logicalIndex)

Returns true if the section specified by logicalIndex is explicitly hidden from the user; otherwise returns false.

See also hideSection(), showSection(), setSectionHidden(), and hiddenSectionCount().

new int QtGui.QHeaderView.Length ( )

Returns the length along the orientation of the header.

See also sizeHint(), setResizeMode(), and offset().

new int QtGui.QHeaderView.LogicalIndex ( int  visualIndex)

Returns the logicalIndex for the section at the given visualIndex position, or -1 if visualIndex < 0 or visualIndex >= QHeaderView::count().

Note that the visualIndex is not affected by hidden sections.

See also visualIndex() and sectionPosition().

new int QtGui.QHeaderView.LogicalIndexAt ( QPoint  pos)

Returns the logical index of the section at the position given in pos. If the header is horizontal the x-coordinate will be used, otherwise the y-coordinate will be used to find the logical index.

See also sectionPosition().

new int QtGui.QHeaderView.LogicalIndexAt ( int  position)

Returns the section that covers the given position in the viewport.

See also visualIndexAt() and isSectionHidden().

new int QtGui.QHeaderView.LogicalIndexAt ( int  x,
int  y 
)

Returns the logical index of the section at the given coordinate. If the header is horizontal x will be used, otherwise y will be used to find the logical index.

override QModelIndex QtGui.QHeaderView.MoveCursor ( QAbstractItemView.CursorAction  cursorAction,
Qt.KeyboardModifier  modifiers 
)
protectedvirtual

Returns a QModelIndex object pointing to the next object in the view, based on the given cursorAction and keyboard modifiers specified by modifiers.

In the base class this is a pure virtual function.

Implements QtGui.QAbstractItemView.

new void QtGui.QHeaderView.MoveSection ( int  from,
int  to 
)

Moves the section at visual index from to occupy visual index to.

See also sectionsMoved().

override bool QtGui.QHeaderView.OnEvent ( QEvent  e)
virtual

Reimplemented from QObject::event().

Reimplemented from QtGui.QAbstractScrollArea.

new void QtGui.QHeaderView.OnGeometriesChanged ( )
protected

This signal is emitted when the header's geometries have changed.

This function was introduced in Qt 4.2.

override void QtGui.QHeaderView.OnMouseDoubleClickEvent ( QMouseEvent  e)
protectedvirtual

Reimplemented from QWidget::mouseDoubleClickEvent().

Reimplemented from QtGui.QAbstractScrollArea.

override void QtGui.QHeaderView.OnMouseMoveEvent ( QMouseEvent  e)
protectedvirtual

Reimplemented from QWidget::mouseMoveEvent().

Reimplemented from QtGui.QAbstractScrollArea.

override void QtGui.QHeaderView.OnMousePressEvent ( QMouseEvent  e)
protectedvirtual

Reimplemented from QWidget::mousePressEvent().

Reimplemented from QtGui.QAbstractScrollArea.

override void QtGui.QHeaderView.OnMouseReleaseEvent ( QMouseEvent  e)
protectedvirtual

Reimplemented from QWidget::mouseReleaseEvent().

Reimplemented from QtGui.QAbstractScrollArea.

override void QtGui.QHeaderView.OnPaintEvent ( QPaintEvent  e)
protectedvirtual

Reimplemented from QWidget::paintEvent().

Reimplemented from QtGui.QAbstractScrollArea.

new void QtGui.QHeaderView.OnSectionAutoResize ( int  logicalIndex,
QHeaderView.ResizeMode  mode 
)
protected

This signal is emitted when a section is automatically resized. The section's logical index is specified by logicalIndex, and the resize mode by mode.

See also setResizeMode() and stretchLastSection().

new void QtGui.QHeaderView.OnSectionClicked ( int  logicalIndex)
protected

This signal is emitted when a section is clicked. The section's logical index is specified by logicalIndex.

Note that the sectionPressed signal will also be emitted.

See also setClickable() and sectionPressed().

new void QtGui.QHeaderView.OnSectionCountChanged ( int  oldCount,
int  newCount 
)
protected

This signal is emitted when the number of sections changes, i.e., when sections are added or deleted. The original count is specified by oldCount, and the new count by newCount.

See also count(), length(), and headerDataChanged().

new void QtGui.QHeaderView.OnSectionDoubleClicked ( int  logicalIndex)
protected

This signal is emitted when a section is double-clicked. The section's logical index is specified by logicalIndex.

See also setClickable().

new void QtGui.QHeaderView.OnSectionEntered ( int  logicalIndex)
protected

This signal is emitted when the cursor moves over the section and the left mouse button is pressed. The section's logical index is specified by logicalIndex.

This function was introduced in Qt 4.3.

See also setClickable() and sectionPressed().

new void QtGui.QHeaderView.OnSectionHandleDoubleClicked ( int  logicalIndex)
protected

This signal is emitted when a section is double-clicked. The section's logical index is specified by logicalIndex.

See also setClickable().

new void QtGui.QHeaderView.OnSectionMoved ( int  logicalIndex,
int  oldVisualIndex,
int  newVisualIndex 
)
protected

This signal is emitted when a section is moved. The section's logical index is specified by logicalIndex, the old index by oldVisualIndex, and the new index position by newVisualIndex.

See also moveSection().

new void QtGui.QHeaderView.OnSectionPressed ( int  logicalIndex)
protected

This signal is emitted when a section is pressed. The section's logical index is specified by logicalIndex.

See also setClickable().

new void QtGui.QHeaderView.OnSectionResized ( int  logicalIndex,
int  oldSize,
int  newSize 
)
protected

This signal is emitted when a section is resized. The section's logical number is specified by logicalIndex, the old size by oldSize, and the new size by newSize.

See also resizeSection().

new void QtGui.QHeaderView.OnSortIndicatorChanged ( int  logicalIndex,
Qt.SortOrder  order 
)
protected

This signal is emitted when the section containing the sort indicator or the order indicated is changed. The section's logical index is specified by logicalIndex and the sort order is specified by order.

This function was introduced in Qt 4.3.

See also setSortIndicator().

override bool QtGui.QHeaderView.OnViewportEvent ( QEvent  e)
protectedvirtual

Reimplemented from QAbstractScrollArea::viewportEvent().

Reimplemented from QtGui.QAbstractScrollArea.

new Qt.Orientation QtGui.QHeaderView.Orientation ( )

Returns the orientation of the header.

See also Qt::Orientation.

virtual void QtGui.QHeaderView.PaintSection ( QPainter  painter,
QRect  rect,
int  logicalIndex 
)
protectedvirtual

Paints the section specified by the given logicalIndex, using the given painter and rect.

Normally, you do not have to call this function.

override void QtGui.QHeaderView.Reset ( )
virtual

Reimplemented from QAbstractItemView::reset().

Reimplemented from QtGui.QAbstractItemView.

new QHeaderView.ResizeMode QtGui.QHeaderView.resizeMode ( int  logicalIndex)

Returns the resize mode that applies to the section specified by the given logicalIndex.

See also setResizeMode().

new void QtGui.QHeaderView.ResizeSection ( int  logicalIndex,
int  size 
)

Resizes the section specified by logicalIndex to size measured in pixels.

See also sectionResized(), resizeMode(), and sectionSize().

new void QtGui.QHeaderView.ResizeSections ( )
protected

Resizes the sections according to their size hints. Normally, you do not have to call this function.

new void QtGui.QHeaderView.ResizeSections ( QHeaderView.ResizeMode  mode)

Resizes the sections according to the given mode, ignoring the current resize mode.

See also resizeMode() and sectionResized().

new bool QtGui.QHeaderView.RestoreState ( QByteArray  state)

Restores the state of this header view. This function returns true if the state was restored; otherwise returns false.

This function was introduced in Qt 4.3.

See also saveState().

override void QtGui.QHeaderView.RowsInserted ( QModelIndex  parent,
int  start,
int  end 
)
protectedvirtual

This slot is called when rows are inserted. The new rows are those under the given parent from start to end inclusive. The base class implementation calls fetchMore() on the model to check for more data.

See also rowsAboutToBeRemoved().

Reimplemented from QtGui.QAbstractItemView.

new QByteArray QtGui.QHeaderView.SaveState ( )

Saves the current state of this header view.

To restore the saved state, pass the return value to restoreState().

This function was introduced in Qt 4.3.

See also restoreState().

override void QtGui.QHeaderView.ScrollContentsBy ( int  dx,
int  dy 
)
protectedvirtual

This virtual handler is called when the scroll bars are moved by dx, dy, and consequently the viewport's contents should be scrolled accordingly.

The default implementation simply calls update() on the entire viewport(), subclasses can reimplement this handler for optimization purposes, or - like QScrollArea - to move a contents widget. The parameters dx and dy are there for convenience, so that the class knows how much should be scrolled (useful e.g. when doing pixel-shifts). You may just as well ignore these values and scroll directly to the position the scroll bars indicate.

Calling this function in order to scroll programmatically is an error, use the scroll bars instead (e.g. by calling QScrollBar::setValue() directly).

Reimplemented from QtGui.QAbstractScrollArea.

override void QtGui.QHeaderView.ScrollTo ( QModelIndex  index,
QAbstractItemView.ScrollHint  hint 
)
virtual

Scrolls the view if necessary to ensure that the item at index is visible. The view will try to position the item according to the given hint.

In the base class this is a pure virtual function.

Implements QtGui.QAbstractItemView.

new int QtGui.QHeaderView.SectionPosition ( int  logicalIndex)

Returns the section position of the given logicalIndex, or -1 if the section is hidden. The position is measured in pixels from the first visible item's top-left corner to the top-left corner of the item with logicalIndex. The measurement is along the x-axis for horizontal headers and along the y-axis for vertical headers.

See also sectionViewportPosition().

new void QtGui.QHeaderView.SectionsAboutToBeRemoved ( QModelIndex  parent,
int  logicalFirst,
int  logicalLast 
)
protected

This slot is called when sections are removed from the parent. logicalFirst and logicalLast signify where the sections were removed.

If only one section is removed, logicalFirst and logicalLast will be the same.

new bool QtGui.QHeaderView.SectionsHidden ( )

Returns true if sections in the header has been hidden; otherwise returns false;

This function was introduced in Qt 4.1.

See also setSectionHidden().

new void QtGui.QHeaderView.SectionsInserted ( QModelIndex  parent,
int  logicalFirst,
int  logicalLast 
)
protected

This slot is called when sections are inserted into the parent. logicalFirst and logicalLast indices signify where the new sections were inserted.

If only one section is inserted, logicalFirst and logicalLast will be the same.

new int QtGui.QHeaderView.SectionSize ( int  logicalIndex)

Returns the width (or height for vertical headers) of the given logicalIndex.

See also length(), setResizeMode(), and defaultSectionSize().

virtual QSize QtGui.QHeaderView.SectionSizeFromContents ( int  logicalIndex)
protectedvirtual

Returns the size of the contents of the section specified by the given logicalIndex.

See also defaultSectionSize().

new int QtGui.QHeaderView.SectionSizeHint ( int  logicalIndex)

Returns a suitable size hint for the section specified by logicalIndex.

See also sizeHint(), defaultSectionSize(), minimumSectionSize(), and Qt::SizeHintRole.

new bool QtGui.QHeaderView.SectionsMoved ( )

Returns true if sections in the header has been moved; otherwise returns false;

See also moveSection().

new int QtGui.QHeaderView.SectionViewportPosition ( int  logicalIndex)

Returns the section viewport position of the given logicalIndex.

If the section is hidden, the return value is undefined.

See also sectionPosition() and isSectionHidden().

new void QtGui.QHeaderView.SetClickable ( bool  clickable)

If clickable is true, the header will respond to single clicks.

See also isClickable(), sectionClicked(), sectionPressed(), and setSortIndicatorShown().

new void QtGui.QHeaderView.SetDefaultAlignment ( Qt.AlignmentFlag  alignment)
new void QtGui.QHeaderView.SetMovable ( bool  movable)

If movable is true, the header may be moved by the user; otherwise it is fixed in place.

See also isMovable() and sectionMoved().

new void QtGui.QHeaderView.SetOffsetToLastSection ( )

Sets the offset to make the last section visible.

This function was introduced in Qt 4.2.

See also setOffset(), sectionPosition(), and setOffsetToSectionPosition().

new void QtGui.QHeaderView.SetOffsetToSectionPosition ( int  visualIndex)

Sets the offset to the start of the section at the given visualIndex.

This function was introduced in Qt 4.2.

See also setOffset() and sectionPosition().

new void QtGui.QHeaderView.SetResizeMode ( QHeaderView.ResizeMode  mode)

Sets the constraints on how the header can be resized to those described by the given mode.

See also resizeMode(), length(), sectionResized(), and sectionAutoResize().

new void QtGui.QHeaderView.SetResizeMode ( int  logicalIndex,
QHeaderView.ResizeMode  mode 
)

This is an overloaded function.

Sets the constraints on how the section specified by logicalIndex in the header can be resized to those described by the given mode. The logical index should exist at the time this function is called.

Note: This setting will be ignored for the last section if the stretchLastSection property is set to true. This is the default for the horizontal headers provided by QTreeView.

See also setStretchLastSection().

new void QtGui.QHeaderView.SetSectionHidden ( int  logicalIndex,
bool  hide 
)

If hide is true the section specified by logicalIndex is hidden; otherwise the section is shown.

See also isSectionHidden() and hiddenSectionCount().

override void QtGui.QHeaderView.SetSelection ( QRect  rect,
QItemSelectionModel.SelectionFlag  flags 
)
protectedvirtual

Reimplemented from QAbstractItemView::setSelection().

Selects the items in the given rect according to the specified flags.

The base class implementation does nothing.

Implements QtGui.QAbstractItemView.

new void QtGui.QHeaderView.SetSortIndicator ( int  logicalIndex,
Qt.SortOrder  order 
)

Sets the sort indicator for the section specified by the given logicalIndex in the direction specified by order, and removes the sort indicator from any other section that was showing it.

logicalIndex may be -1, in which case no sort indicator will be shown and the model will return to its natural, unsorted order. Note that not all models support this and may even crash in this case.

See also sortIndicatorSection() and sortIndicatorOrder().

new void QtGui.QHeaderView.ShowSection ( int  logicalIndex)

Shows the section specified by logicalIndex.

See also hideSection(), isSectionHidden(), hiddenSectionCount(), and setSectionHidden().

override QSize QtGui.QHeaderView.SizeHint ( )
virtual

Reimplemented from QWidget::sizeHint().

Returns a suitable size hint for this header.

See also sectionSizeHint().

Reimplemented from QtGui.QAbstractScrollArea.

new Qt.SortOrder QtGui.QHeaderView.SortIndicatorOrder ( )

Returns the order for the sort indicator. If no section has a sort indicator the return value of this function is undefined.

See also setSortIndicator() and sortIndicatorSection().

new int QtGui.QHeaderView.SortIndicatorSection ( )

Returns the logical index of the section that has a sort indicator. By default this is section 0.

See also setSortIndicator(), sortIndicatorOrder(), and setSortIndicatorShown().

new int QtGui.QHeaderView.StretchSectionCount ( )

Returns the number of sections that are set to resize mode stretch. In views, this can be used to see if the headerview needs to resize the sections when the view's geometry changes.

This function was introduced in Qt 4.1.

See also stretchLastSection and resizeMode().

new void QtGui.QHeaderView.SwapSections ( int  first,
int  second 
)

Swaps the section at visual index first with the section at visual index second.

This function was introduced in Qt 4.2.

See also moveSection().

static string QtGui.QHeaderView.Tr ( string  s,
string  c = null 
)
static
static string QtGui.QHeaderView.Tr ( string  s,
string  c,
int  n 
)
static
static string QtGui.QHeaderView.TrUtf8 ( string  s,
string  c = null 
)
static
static string QtGui.QHeaderView.TrUtf8 ( string  s,
string  c,
int  n 
)
static
override void QtGui.QHeaderView.UpdateGeometries ( )
protectedvirtual

Updates the geometry of the child widgets of the view.

This function was introduced in Qt 4.4.

Reimplemented from QtGui.QAbstractItemView.

new void QtGui.QHeaderView.UpdateSection ( int  logicalIndex)
protected
override int QtGui.QHeaderView.VerticalOffset ( )
protectedvirtual

Reimplemented from QAbstractItemView::verticalOffset().

Returns the vertical offset of the header. This is 0 for horizontal headers.

See also offset().

Implements QtGui.QAbstractItemView.

new int QtGui.QHeaderView.VisualIndex ( int  logicalIndex)

Returns the visual index position of the section specified by the given logicalIndex, or -1 otherwise.

Hidden sections still have valid visual indexes.

See also logicalIndex().

new int QtGui.QHeaderView.VisualIndexAt ( int  position)

Returns the visual index of the section that covers the given position in the viewport.

See also logicalIndexAt().

override QRect QtGui.QHeaderView.VisualRect ( QModelIndex  index)
virtual

Returns the rectangle on the viewport occupied by the item at index.

If your item is displayed in several areas then visualRect should return the primary area that contains index and not the complete area that index might encompasses, touch or cause drawing.

In the base class this is a pure virtual function.

See also indexAt() and visualRegionForSelection().

Implements QtGui.QAbstractItemView.

override QRegion QtGui.QHeaderView.VisualRegionForSelection ( QItemSelection  selection)
protectedvirtual

Returns the region from the viewport of the items in the given selection.

In the base class this is a pure virtual function.

See also visualRect() and selectedIndexes().

Implements QtGui.QAbstractItemView.

Property Documentation

new bool QtGui.QHeaderView.CascadingSectionResizes
getset

This property holds whether interactive resizing will be cascaded to the following sections once the section being resized by the user has reached its minimum size.

This property only affects sections that have Interactive as their resize mode.

The default value is false.

This property was introduced in Qt 4.2.

new Qt.AlignmentFlag QtGui.QHeaderView.DefaultAlignment
getset

This property holds the default alignment of the text in each header section.

This property was introduced in Qt 4.1.

new int QtGui.QHeaderView.DefaultSectionSize
getset

This property holds the default size of the header sections before resizing.

This property only affects sections that have Interactive or Fixed as their resize mode.

new IQHeaderViewSignals QtGui.QHeaderView.Emit
getprotected
Slot QtGui.QHeaderView.GeometriesChanged
addremove

This signal is emitted when the header's geometries have changed.

This function was introduced in Qt 4.2.

new bool QtGui.QHeaderView.HighlightSections
getset

This property holds whether the sections containing selected items are highlighted.

By default, this property is false.

new int QtGui.QHeaderView.MinimumSectionSize
getset

This property holds the minimum size of the header sections.

The minimum section size is the smallest section size allowed. If the minimum section size is set to -1, QHeaderView will use the maximum of the global strut or the font metrics size.

This property is honored by all resize modes.

This property was introduced in Qt 4.2.

override QAbstractItemModel QtGui.QHeaderView.Model
getset

Reimplemented from QAbstractItemView::setModel().

new int QtGui.QHeaderView.Offset
getset

Returns the offset of the header: this is the header's left-most (or top-most for vertical headers) visible pixel.

Sets the header's offset to offset.

Slot<System.Int32,QHeaderView.ResizeMode> QtGui.QHeaderView.SectionAutoResize
addremove

This signal is emitted when a section is automatically resized. The section's logical index is specified by logicalIndex, and the resize mode by mode.

See also setResizeMode() and stretchLastSection().

Slot<System.Int32> QtGui.QHeaderView.SectionClicked
addremove

This signal is emitted when a section is clicked. The section's logical index is specified by logicalIndex.

Note that the sectionPressed signal will also be emitted.

See also setClickable() and sectionPressed().

Slot<System.Int32,System.Int32> QtGui.QHeaderView.SectionCountChanged
addremove

This signal is emitted when the number of sections changes, i.e., when sections are added or deleted. The original count is specified by oldCount, and the new count by newCount.

See also count(), length(), and headerDataChanged().

Slot<System.Int32> QtGui.QHeaderView.SectionDoubleClicked
addremove

This signal is emitted when a section is double-clicked. The section's logical index is specified by logicalIndex.

See also setClickable().

Slot<System.Int32> QtGui.QHeaderView.SectionEntered
addremove

This signal is emitted when the cursor moves over the section and the left mouse button is pressed. The section's logical index is specified by logicalIndex.

This function was introduced in Qt 4.3.

See also setClickable() and sectionPressed().

Slot<System.Int32> QtGui.QHeaderView.SectionHandleDoubleClicked
addremove

This signal is emitted when a section is double-clicked. The section's logical index is specified by logicalIndex.

See also setClickable().

Slot<System.Int32,System.Int32,System.Int32> QtGui.QHeaderView.SectionMoved
addremove

This signal is emitted when a section is moved. The section's logical index is specified by logicalIndex, the old index by oldVisualIndex, and the new index position by newVisualIndex.

See also moveSection().

Slot<System.Int32> QtGui.QHeaderView.SectionPressed
addremove

This signal is emitted when a section is pressed. The section's logical index is specified by logicalIndex.

See also setClickable().

Slot<System.Int32,System.Int32,System.Int32> QtGui.QHeaderView.SectionResized
addremove

This signal is emitted when a section is resized. The section's logical number is specified by logicalIndex, the old size by oldSize, and the new size by newSize.

See also resizeSection().

new bool QtGui.QHeaderView.ShowSortIndicator
getset

This property holds whether the sort indicator is shown.

By default, this property is false.

Slot<System.Int32,Qt.SortOrder> QtGui.QHeaderView.SortIndicatorChanged
addremove

This signal is emitted when the section containing the sort indicator or the order indicated is changed. The section's logical index is specified by logicalIndex and the sort order is specified by order.

This function was introduced in Qt 4.3.

See also setSortIndicator().

new QMetaObject QtGui.QHeaderView.StaticMetaObject
staticget
new bool QtGui.QHeaderView.StretchLastSection
getset

This property holds whether the last visible section in the header takes up all the available space.

The default value is false.

Note: The horizontal headers provided by QTreeView are configured with this property set to true, ensuring that the view does not waste any of the space assigned to it for its header. If this value is set to true, this property will override the resize mode set on the last section in the header.