Qyoto
4.0.5
Qyoto is a C# language binding for Qt
|
The QAbstractItemView class provides the basic functionality for item view classes. More...
Public Member Functions | |
QAbstractItemView (QWidget parent=null) | |
| |
override void | CreateProxy () |
new void | ClearSelection () |
| |
new void | ClosePersistentEditor (QModelIndex index) |
| |
virtual void | DoItemsLayout () |
new void | Edit (QModelIndex index) |
| |
new QAbstractItemView.EditTrigger | editTriggers () |
override bool | OnEvent (QEvent @event) |
| |
abstract QModelIndex | IndexAt (QPoint point) |
| |
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) |
| |
virtual void | Reset () |
| |
abstract void | ScrollTo (QModelIndex index, QAbstractItemView.ScrollHint hint=QAbstractItemView.ScrollHint.EnsureVisible) |
| |
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) |
| |
abstract QRect | VisualRect (QModelIndex index) |
| |
new void | Dispose () |
Public Member Functions inherited from QtGui.QAbstractScrollArea | |
QAbstractScrollArea (QWidget parent=null) | |
| |
override void | CreateProxy () |
new void | AddScrollBarWidget (QWidget widget, Qt.AlignmentFlag alignment) |
| |
override bool | OnEvent (QEvent arg1) |
| |
new QSize | MaximumViewportSize () |
| |
override QSize | MinimumSizeHint () |
| |
new System.Collections.Generic.List < QWidget > | ScrollBarWidgets (Qt.AlignmentFlag alignment) |
| |
override QSize | SizeHint () |
| |
new void | Dispose () |
Public Member Functions inherited from QtGui.QFrame | |
QFrame (QWidget parent=null, Qt.WindowType f=0) | |
| |
override void | CreateProxy () |
override bool | OnEvent (QEvent e) |
| |
override QSize | SizeHint () |
| |
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.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 | |
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) |
| |
virtual void | CurrentChanged (QModelIndex current, QModelIndex previous) |
| |
virtual void | DataChanged (QModelIndex topLeft, QModelIndex bottomRight) |
| |
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) |
| |
abstract int | HorizontalOffset () |
| |
virtual void | HorizontalScrollbarAction (int action) |
virtual void | HorizontalScrollbarValueChanged (int value) |
override void | OnInputMethodEvent (QInputMethodEvent @event) |
| |
abstract bool | IsIndexHidden (QModelIndex index) |
| |
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) |
| |
abstract QModelIndex | MoveCursor (QAbstractItemView.CursorAction cursorAction, Qt.KeyboardModifier modifiers) |
| |
new void | OnPressed (QModelIndex index) |
| |
override void | OnResizeEvent (QResizeEvent @event) |
| |
virtual void | RowsAboutToBeRemoved (QModelIndex parent, int start, int end) |
| |
virtual void | RowsInserted (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) |
| |
abstract void | SetSelection (QRect rect, QItemSelectionModel.SelectionFlag command) |
| |
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 | UpdateGeometries () |
| |
abstract int | VerticalOffset () |
| |
virtual void | VerticalScrollbarAction (int action) |
virtual void | VerticalScrollbarValueChanged (int value) |
virtual QStyleOptionViewItem | ViewOptions () |
| |
new void | OnViewportEntered () |
| |
override bool | OnViewportEvent (QEvent @event) |
| |
abstract QRegion | VisualRegionForSelection (QItemSelection selection) |
| |
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 | OnMouseDoubleClickEvent (QMouseEvent arg1) |
| |
override void | OnMouseMoveEvent (QMouseEvent arg1) |
| |
override void | OnMousePressEvent (QMouseEvent arg1) |
| |
override void | OnMouseReleaseEvent (QMouseEvent arg1) |
| |
override void | OnPaintEvent (QPaintEvent arg1) |
| |
override void | OnResizeEvent (QResizeEvent arg1) |
| |
virtual void | ScrollContentsBy (int dx, int dy) |
| |
new void | SetViewportMargins (QMargins margins) |
| |
new void | SetViewportMargins (int left, int top, int right, int bottom) |
| |
new void | SetupViewport (QWidget viewport) |
| |
virtual bool | OnViewportEvent (QEvent arg1) |
| |
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) |
override void | OnPaintEvent (QPaintEvent 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< QModelIndex > | Pressed |
| |
Slot< QModelIndex > | Clicked |
| |
Slot< QModelIndex > | DoubleClicked |
| |
Slot< QModelIndex > | Activated |
| |
Slot< QModelIndex > | Entered |
| |
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< QPoint > | CustomContextMenuRequested |
| |
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< QObject > | DestroyedQObject |
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>() |
The QAbstractItemView class provides the basic functionality for item view classes.
QAbstractItemView class is the base class for every standard view that uses a QAbstractItemModel. QAbstractItemView is an abstract class and cannot itself be instantiated. It provides a standard interface for interoperating with models through the signals and slots mechanism, enabling subclasses to be kept up-to-date with changes to their models. This class provides standard support for keyboard and mouse navigation, viewport scrolling, item editing, and selections. The keyboard navigation implements this functionality:
KeysFunctionality
Arrow keys Changes the current item and selects it.
Ctrl+Arrow keys Changes the current item but does not select it.
Shift+Arrow keys Changes the current item and selects it. The previously selected item(s) is not deselected.
Ctr+Space Toggles selection of the current item.
Tab/Backtab Changes the current item to the next/previous item.
Home/End Selects the first/last item in the model.
Page up/Page down Scrolls the rows shown up/down by the number of visible rows in the view.
Ctrl+A Selects all items in the model.
Note that the above table assumes that the selection mode allows the operations. For instance, you cannot select items if the selection mode is QAbstractItemView::NoSelection.
The QAbstractItemView class is one of the Model/View Classes and is part of Qt's model/view framework.
The view classes that inherit QAbstractItemView only need to implement their own view-specific functionality, such as drawing items, returning the geometry of items, finding items, etc.
QAbstractItemView provides common slots such as edit() and setCurrentIndex(). Many protected slots are also provided, including dataChanged(), rowsInserted(), rowsAboutToBeRemoved(), selectionChanged(), and currentChanged().
The root item is returned by rootIndex(), and the current item by currentIndex(). To make sure that an item is visible use scrollTo().
Some of QAbstractItemView's functions are concerned with scrolling, for example setHorizontalScrollMode() and setVerticalScrollMode(). To set the range of the scroll bars, you can, for example, reimplement the view's resizeEvent() function:
void MyView::resizeEvent(QResizeEvent *event) {
horizontalScrollBar()->setRange(0, realWidth - width());
...
}
Note that the range is not updated until the widget is shown.
Several other functions are concerned with selection control; for example setSelectionMode(), and setSelectionBehavior(). This class provides a default selection model to work with (selectionModel()), but this can be replaced by using setSelectionModel() with an instance of QItemSelectionModel.
For complete control over the display and editing of items you can specify a delegate with setItemDelegate().
QAbstractItemView provides a lot of protected functions. Some are concerned with editing, for example, edit(), and commitData(), whilst others are keyboard and mouse event handlers.
Note: If you inherit QAbstractItemView and intend to update the contents of the viewport, you should use viewport->update() instead of update() as all painting operations take place on the viewport.
See also View Classes, Model/View Programming, QAbstractItemModel, and Chart Example.
This enum describes the different ways to navigate between items,
See also moveCursor().
Describes the various drag and drop events the view can act upon. By default the view does not support dragging or dropping (NoDragDrop).
Note that the model used needs to provide support for drag and drop operations.
This enum was introduced or modified in Qt 4.2.
See also setDragDropMode() and Using drag and drop with item views.
This enum indicates the position of the drop indicator in relation to the index at the current mouse position:
This enum describes actions which will initiate item editing.
This enum indicates how the view responds to user selections:
The most commonly used modes are SingleSelection and ExtendedSelection.
Describes the different states the view can be in. This is usually only interesting when reimplementing your own view.
|
protected |
QtGui.QAbstractItemView.QAbstractItemView | ( | QWidget | parent = null | ) |
Constructs an abstract item view with the given parent.
new void QtGui.QAbstractItemView.ClearSelection | ( | ) |
Deselects all selected items. The current index will not be changed.
See also setSelection() and selectAll().
|
protectedvirtual |
Closes the given editor, and releases it. The hint is used to specify how the view should respond to the end of the editing operation. For example, the hint may indicate that the next item in the view should be opened for editing.
See also edit() and commitData().
new void QtGui.QAbstractItemView.ClosePersistentEditor | ( | QModelIndex | index | ) |
Closes the persistent editor for the item at the given index.
See also openPersistentEditor().
|
protectedvirtual |
Commit the data in the editor to the model.
See also closeEditor().
|
virtual |
Reimplemented from QtCore.QObject.
Reimplemented in QtGui.QUndoView, QtGui.QTreeWidget, QtGui.QTreeView, QtGui.QTableWidget, QtGui.QTableView, QtGui.QListWidget, QtGui.QListView, QtGui.QHeaderView, and QtGui.QColumnView.
|
protectedvirtual |
This slot is called when a new item becomes the current item. The previous current item is specified by the previous index, and the new item by the current index.
If you want to know about changes to items see the dataChanged() signal.
Reimplemented in QtGui.QTreeView, QtGui.QTableView, QtGui.QListView, QtGui.QHeaderView, and QtGui.QColumnView.
|
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 in QtGui.QTreeView, QtGui.QListView, and QtGui.QHeaderView.
|
protected |
Returns the offset of the dirty regions in the view.
If you use scrollDirtyRegion() and implement a paintEvent() in a subclass of QAbstractItemView, you should translate the area given by the paint event with the offset returned from this function.
See also scrollDirtyRegion() and setDirtyRegion().
new void QtGui.QAbstractItemView.Dispose | ( | ) |
|
protected |
|
virtual |
Reimplemented in QtGui.QTreeView, QtGui.QTableView, QtGui.QListView, and QtGui.QHeaderView.
|
protected |
Returns the position of the drop indicator in relation to the closest item.
This function was introduced in Qt 4.1.
new void QtGui.QAbstractItemView.Edit | ( | QModelIndex | index | ) |
Starts editing the item corresponding to the given index if it is editable.
Note that this function does not change the current index. Since the current index defines the next and previous items to edit, users may find that keyboard navigation does not work as expected. To provide consistent navigation behavior, call setCurrentIndex() before this function with the same model index.
See also QModelIndex::flags().
|
protectedvirtual |
Starts editing the item at index, creating an editor if necessary, and returns true if the view's State is now EditingState; otherwise returns false.
The action that caused the editing process is described by trigger, and the associated event is specified by event.
Editing can be forced by specifying the trigger to be QAbstractItemView::AllEditTriggers.
See also closeEditor().
|
protectedvirtual |
This function is called when the given editor has been destroyed.
See also closeEditor().
new QAbstractItemView.EditTrigger QtGui.QAbstractItemView.editTriggers | ( | ) |
|
protected |
Executes the scheduled layouts without waiting for the event processing to begin.
See also scheduleDelayedItemsLayout().
|
protectedvirtual |
Reimplemented from QWidget::focusNextPrevChild().
Reimplemented from QtGui.QWidget.
|
protectedpure virtual |
Returns the horizontal offset of the view.
In the base class this is a pure virtual function.
See also verticalOffset().
Implemented in QtGui.QTreeView, QtGui.QTableView, QtGui.QListView, QtGui.QHeaderView, and QtGui.QColumnView.
|
protectedvirtual |
Reimplemented in QtGui.QTreeView, and QtGui.QTableView.
|
protectedvirtual |
|
pure 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().
Implemented in QtGui.QTreeView, QtGui.QTableView, QtGui.QListView, QtGui.QHeaderView, and QtGui.QColumnView.
new QWidget QtGui.QAbstractItemView.IndexWidget | ( | QModelIndex | index | ) |
Returns the widget for the item at the given index.
This function was introduced in Qt 4.1.
See also setIndexWidget().
|
virtual |
Reimplemented from QWidget::inputMethodQuery().
Reimplemented from QtGui.QWidget.
|
protectedpure virtual |
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.
Implemented in QtGui.QTreeView, QtGui.QTableView, QtGui.QListView, QtGui.QHeaderView, and QtGui.QColumnView.
new QAbstractItemDelegate QtGui.QAbstractItemView.ItemDelegate | ( | ) |
Returns the item delegate used by this view and model. This is either one set with setItemDelegate(), or the default one.
See also setItemDelegate().
new QAbstractItemDelegate QtGui.QAbstractItemView.ItemDelegate | ( | QModelIndex | index | ) |
Returns the item delegate used by this view and model for the given index.
new QAbstractItemDelegate QtGui.QAbstractItemView.ItemDelegateForColumn | ( | int | column | ) |
Returns the item delegate used by this view and model for the given column. You can call itemDelegate() to get a pointer to the current delegate for a given index.
This function was introduced in Qt 4.2.
See also setItemDelegateForColumn(), itemDelegateForRow(), and itemDelegate().
new QAbstractItemDelegate QtGui.QAbstractItemView.ItemDelegateForRow | ( | int | row | ) |
Returns the item delegate used by this view and model for the given row, or 0 if no delegate has been assigned. You can call itemDelegate() to get a pointer to the current delegate for a given index.
This function was introduced in Qt 4.2.
See also setItemDelegateForRow(), itemDelegateForColumn(), and setItemDelegate().
|
virtual |
Moves to and selects the item best matching the string search. If no item is found nothing happens.
In the default implementation, the search is reset if search is empty, or the time interval since the last search has exceeded QApplication::keyboardInputInterval().
Reimplemented in QtGui.QTreeView.
|
protectedpure virtual |
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.
Implemented in QtGui.QTreeView, QtGui.QTableView, QtGui.QListView, QtGui.QHeaderView, and QtGui.QColumnView.
|
protected |
This signal is emitted when the item specified by index is activated by the user. How to activate items depends on the platform; e.g., by single- or double-clicking the item, or by pressing the Return or Enter key when the item is current.
See also clicked(), doubleClicked(), entered(), and pressed().
|
protected |
This signal is emitted when a mouse button is clicked. The item the mouse was clicked on is specified by index. The signal is only emitted when the index is valid.
See also activated(), doubleClicked(), entered(), and pressed().
|
protected |
This signal is emitted when a mouse button is double-clicked. The item the mouse was double-clicked on is specified by index. The signal is only emitted when the index is valid.
See also clicked() and activated().
|
protected |
Reimplemented from QWidget::dragEnterEvent().
This function is called with the given event when a drag and drop operation enters the widget. If the drag is over a valid dropping place (e.g. over an item that accepts drops), the event is accepted; otherwise it is ignored.
See also dropEvent() and startDrag().
|
protected |
Reimplemented from QWidget::dragLeaveEvent().
This function is called when the item being dragged leaves the view. The event describes the state of the drag and drop operation.
|
protected |
Reimplemented from QWidget::dragMoveEvent().
This function is called continuously with the given event during a drag and drop operation over the widget. It can cause the view to scroll if, for example, the user drags a selection to view's right or bottom edge. In this case, the event will be accepted; otherwise it will be ignored.
See also dropEvent() and startDrag().
|
protected |
Reimplemented from QWidget::dropEvent().
This function is called with the given event when a drop event occurs over the widget. If the model accepts the even position the drop event is accepted; otherwise it is ignored.
See also startDrag().
|
protected |
This signal is emitted when the mouse cursor enters the item specified by index. Mouse tracking needs to be enabled for this feature to work.
See also viewportEntered(), activated(), clicked(), doubleClicked(), and pressed().
override bool QtGui.QAbstractItemView.OnEvent | ( | QEvent @ | event | ) |
Reimplemented from QObject::event().
|
protected |
Reimplemented from QWidget::focusInEvent().
This function is called with the given event when the widget obtains the focus. By default, the event is ignored.
See also setFocus() and focusOutEvent().
|
protected |
Reimplemented from QWidget::focusOutEvent().
This function is called with the given event when the widget looses the focus. By default, the event is ignored.
See also clearFocus() and focusInEvent().
|
protected |
Reimplemented from QWidget::inputMethodEvent().
|
protected |
Reimplemented from QWidget::keyPressEvent().
This function is called with the given event when a key event is sent to the widget. The default implementation handles basic cursor movement, e.g. Up, Down, Left, Right, Home, PageUp, and PageDown; the activated() signal is emitted if the current index is valid and the activation key is pressed (e.g. Enter or Return, depending on the platform). This function is where editing is initiated by key press, e.g. if F2 is pressed.
See also edit(), moveCursor(), keyboardSearch(), and tabKeyNavigation.
|
protected |
Reimplemented from QWidget::mouseDoubleClickEvent().
This function is called with the given event when a mouse button is double clicked inside the widget. If the double-click is on a valid item it emits the doubleClicked() signal and calls edit() on the item.
|
protected |
Reimplemented from QWidget::mouseMoveEvent().
This function is called with the given event when a mouse move event is sent to the widget. If a selection is in progress and new items are moved over the selection is extended; if a drag is in progress it is continued.
|
protected |
Reimplemented from QWidget::mousePressEvent().
This function is called with the given event when a mouse button is pressed while the cursor is inside the widget. If a valid item is pressed on it is made into the current item. This function emits the pressed() signal.
|
protected |
Reimplemented from QWidget::mouseReleaseEvent().
This function is called with the given event when a mouse button is released, after a mouse press event on the widget. If a user presses the mouse inside your widget and then drags the mouse to another location before releasing the mouse button, your widget receives the release event. The function will emit the clicked() signal if an item was being pressed.
|
protected |
This signal is emitted when a mouse button is pressed. The item the mouse was pressed on is specified by index. The signal is only emitted when the index is valid.
Use the QApplication::mouseButtons() function to get the state of the mouse buttons.
See also activated(), clicked(), doubleClicked(), and entered().
|
protected |
Reimplemented from QWidget::resizeEvent().
This function is called with the given event when a resize event is sent to the widget.
See also QWidget::resizeEvent().
|
protected |
Reimplemented from QObject::timerEvent().
This function is called with the given event when a timer event is sent to the widget.
See also QObject::timerEvent().
|
protected |
This signal is emitted when the mouse cursor enters the viewport. Mouse tracking needs to be enabled for this feature to work.
See also entered().
|
protected |
Reimplemented from QAbstractScrollArea::viewportEvent().
This function is used to handle tool tips, and What's This? mode, if the given event is a QEvent::ToolTip,or a QEvent::WhatsThis. It passes all other events on to its base class viewportEvent() handler.
new void QtGui.QAbstractItemView.OpenPersistentEditor | ( | QModelIndex | index | ) |
Opens a persistent editor on the item at the given index. If no editor exists, the delegate will create a new editor.
See also closePersistentEditor().
|
virtual |
Reset the internal state of the view.
Warning: This function will reset open editors, scroll bar positions, selections, etc. Existing changes will not be committed. If you would like to save your changes when resetting the view, you can reimplement this function, commit your changes, and then call the superclass' implementation.
Reimplemented in QtGui.QTreeView, QtGui.QListView, and QtGui.QHeaderView.
|
protectedvirtual |
This slot is called when rows are about to be removed. The deleted rows are those under the given parent from start to end inclusive.
See also rowsInserted().
Reimplemented in QtGui.QTreeView, and QtGui.QListView.
|
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 in QtGui.QTreeView, QtGui.QListView, QtGui.QHeaderView, and QtGui.QColumnView.
|
protected |
Schedules a layout of the items in the view to be executed when the event processing starts.
Even if scheduleDelayedItemsLayout() is called multiple times before events are processed, the view will only do the layout once.
See also executeDelayedItemsLayout().
|
protected |
Prepares the view for scrolling by (dx,dy) pixels by moving the dirty regions in the opposite direction. You only need to call this function if you are implementing a scrolling viewport in your view subclass.
If you implement scrollContentsBy() in a subclass of QAbstractItemView, call this function before you call QWidget::scroll() on the viewport. Alternatively, just call update().
See also scrollContentsBy(), dirtyRegionOffset(), and setDirtyRegion().
|
pure 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.
Implemented in QtGui.QTreeView, QtGui.QTableView, QtGui.QListView, QtGui.QHeaderView, and QtGui.QColumnView.
new void QtGui.QAbstractItemView.ScrollToBottom | ( | ) |
Scrolls the view to the bottom.
This function was introduced in Qt 4.1.
See also scrollTo() and scrollToTop().
new void QtGui.QAbstractItemView.ScrollToTop | ( | ) |
Scrolls the view to the top.
This function was introduced in Qt 4.1.
See also scrollTo() and scrollToBottom().
|
virtual |
Selects all items in the view. This function will use the selection behavior set on the view when selecting.
See also setSelection(), selectedIndexes(), and clearSelection().
Reimplemented in QtGui.QTreeView, and QtGui.QColumnView.
|
protectedvirtual |
This convenience function returns a list of all selected and non-hidden item indexes in the view. The list contains no duplicates, and is not sorted.
See also QItemSelectionModel::selectedIndexes().
Reimplemented in QtGui.QTreeView, QtGui.QTableView, and QtGui.QListView.
|
protectedvirtual |
This slot is called when the selection is changed. The previous selection (which may be empty), is specified by deselected, and the new selection by selected.
See also setSelection().
Reimplemented in QtGui.QTreeView, QtGui.QTableView, and QtGui.QListView.
|
protectedvirtual |
Returns the SelectionFlags to be used when updating a selection with to include the index specified. The event is a user input event, such as a mouse or keyboard event.
Reimplement this function to define your own selection behavior.
See also setSelection().
|
protected |
Marks the given region as dirty and schedules it to be updated. You only need to call this function if you are implementing your own view subclass.
This function was introduced in Qt 4.1.
See also scrollDirtyRegion() and dirtyRegionOffset().
new void QtGui.QAbstractItemView.SetEditTriggers | ( | QAbstractItemView.EditTrigger | triggers | ) |
new void QtGui.QAbstractItemView.SetIndexWidget | ( | QModelIndex | index, |
QWidget | widget | ||
) |
Sets the given widget on the item at the given index, passing the ownership of the widget to the viewport.
If index is invalid (e.g., if you pass the root index), this function will do nothing.
The given widget's autoFillBackground property must be set to true, otherwise the widget's background will be transparent, showing both the model data and the item at the given index.
If index widget A is replaced with index widget B, index widget A will be deleted. For example, in the code snippet below, the QLineEdit object will be deleted.
setIndexWidget(index, new QLineEdit);
...
setIndexWidget(index, new QTextEdit);
This function should only be used to display static content within the visible area corresponding to an item of data. If you want to display custom dynamic content or implement a custom editor widget, subclass QItemDelegate instead.
This function was introduced in Qt 4.1.
See also indexWidget() and Delegate Classes.
new void QtGui.QAbstractItemView.SetItemDelegate | ( | QAbstractItemDelegate @ | delegate | ) |
Sets the item delegate for this view and its model to delegate. This is useful if you want complete control over the editing and display of items.
Any existing delegate will be removed, but not deleted. QAbstractItemView does not take ownership of delegate.
Warning: You should not share the same instance of a delegate between views. Doing so can cause incorrect or unintuitive editing behavior since each view connected to a given delegate may receive the closeEditor() signal, and attempt to access, modify or close an editor that has already been closed.
See also itemDelegate().
new void QtGui.QAbstractItemView.SetItemDelegateForColumn | ( | int | column, |
QAbstractItemDelegate @ | delegate | ||
) |
Sets the given item delegate used by this view and model for the given column. All items on column will be drawn and managed by delegate instead of using the default delegate (i.e., itemDelegate()).
Any existing column delegate for column will be removed, but not deleted. QAbstractItemView does not take ownership of delegate.
Note: If a delegate has been assigned to both a row and a column, the row delegate will take precedence and manage the intersecting cell index.
Warning: You should not share the same instance of a delegate between views. Doing so can cause incorrect or unintuitive editing behavior since each view connected to a given delegate may receive the closeEditor() signal, and attempt to access, modify or close an editor that has already been closed.
This function was introduced in Qt 4.2.
See also itemDelegateForColumn(), setItemDelegateForRow(), and itemDelegate().
new void QtGui.QAbstractItemView.SetItemDelegateForRow | ( | int | row, |
QAbstractItemDelegate @ | delegate | ||
) |
Sets the given item delegate used by this view and model for the given row. All items on row will be drawn and managed by delegate instead of using the default delegate (i.e., itemDelegate()).
Any existing row delegate for row will be removed, but not deleted. QAbstractItemView does not take ownership of delegate.
Note: If a delegate has been assigned to both a row and a column, the row delegate (i.e., this delegate) will take precedence and manage the intersecting cell index.
Warning: You should not share the same instance of a delegate between views. Doing so can cause incorrect or unintuitive editing behavior since each view connected to a given delegate may receive the closeEditor() signal, and attempt to access, modify or close an editor that has already been closed.
This function was introduced in Qt 4.2.
See also itemDelegateForRow(), setItemDelegateForColumn(), and itemDelegate().
|
protectedpure virtual |
Applies the selection flags to the items in or touched by the rectangle, rect.
When implementing your own itemview setSelection should call selectionModel()->select(selection, flags) where selection is either an empty QModelIndex or a QItemSelection that contains all items that are contained in rect.
See also selectionCommand() and selectedIndexes().
Implemented in QtGui.QTreeView, QtGui.QTableView, QtGui.QListView, QtGui.QHeaderView, and QtGui.QColumnView.
|
virtual |
Returns the width size hint for the specified column or -1 if there is no model.
This function is used in views with a horizontal header to find the size hint for a header section based on the contents of the given column.
See also sizeHintForRow().
Reimplemented in QtGui.QTreeView, and QtGui.QTableView.
new QSize QtGui.QAbstractItemView.SizeHintForIndex | ( | QModelIndex | index | ) |
Returns the size hint for the item with the specified index or an invalid size for invalid indexes.
See also sizeHintForRow() and sizeHintForColumn().
|
virtual |
Returns the height size hint for the specified row or -1 if there is no model.
The returned height is calculated using the size hints of the given row's items, i.e. the returned value is the maximum height among the items. Note that to control the height of a row, you must reimplement the QAbstractItemDelegate::sizeHint() function.
This function is used in views with a vertical header to find the size hint for a header section based on the contents of the given row.
See also sizeHintForColumn().
Reimplemented in QtGui.QTableView.
|
protected |
|
protectedvirtual |
Starts a drag by calling drag->exec() using the given supportedActions.
Reimplemented in QtGui.QListView.
|
protected |
|
static |
|
static |
|
static |
|
static |
new void QtGui.QAbstractItemView.Update | ( | QModelIndex | index | ) |
Updates the area occupied by the given index.
This function was introduced in Qt 4.3.
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Updates the geometry of the child widgets of the view.
This function was introduced in Qt 4.4.
Reimplemented in QtGui.QTreeView, QtGui.QTableView, QtGui.QListView, and QtGui.QHeaderView.
|
protectedpure virtual |
Returns the vertical offset of the view.
In the base class this is a pure virtual function.
See also horizontalOffset().
Implemented in QtGui.QTreeView, QtGui.QTableView, QtGui.QListView, QtGui.QHeaderView, and QtGui.QColumnView.
|
protectedvirtual |
Reimplemented in QtGui.QTableView.
|
protectedvirtual |
|
protectedvirtual |
Returns a QStyleOptionViewItem structure populated with the view's palette, font, state, alignments etc.
Reimplemented in QtGui.QTableView, and QtGui.QListView.
|
pure 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().
Implemented in QtGui.QTreeView, QtGui.QTableView, QtGui.QListView, QtGui.QHeaderView, and QtGui.QColumnView.
|
protectedpure virtual |
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().
Implemented in QtGui.QTreeView, QtGui.QTableView, QtGui.QListView, QtGui.QHeaderView, and QtGui.QColumnView.
|
addremove |
This signal is emitted when the item specified by index is activated by the user. How to activate items depends on the platform; e.g., by single- or double-clicking the item, or by pressing the Return or Enter key when the item is current.
See also clicked(), doubleClicked(), entered(), and pressed().
|
getset |
This property holds whether to draw the background using alternating colors.
If this property is true, the item background will be drawn using QPalette::Base and QPalette::AlternateBase; otherwise the background will be drawn using the QPalette::Base color.
By default, this property is false.
|
getset |
This property holds whether autoscrolling in drag move events is enabled.
If this property is set to true (the default), the QAbstractItemView automatically scrolls the contents of the view if the user drags within 16 pixels of the viewport edge. If the current item changes, then the view will scroll automatically to ensure that the current item is fully visible.
This property only works if the viewport accepts drops. Autoscroll is switched off by setting this property to false.
|
getset |
This property holds the size of the area when auto scrolling is triggered.
This property controls the size of the area at the edge of the viewport that triggers autoscrolling. The default value is 16 pixels.
This property was introduced in Qt 4.4.
|
addremove |
This signal is emitted when a mouse button is clicked. The item the mouse was clicked on is specified by index. The signal is only emitted when the index is valid.
See also activated(), doubleClicked(), entered(), and pressed().
|
getset |
Returns the model index of the current item.
Sets the current item to be the item at index.
Unless the current selection mode is NoSelection, the item is also be selected. Note that this function also updates the starting position for any new selections the user performs.
To set an item as the current item without selecting it, call
selectionModel()->setCurrentIndex(index, QItemSelectionModel::NoUpdate);
|
getset |
This property holds the drop action that will be used by default in QAbstractItemView::drag().
If the property is not set, the drop action is CopyAction when the supported actions support CopyAction.
This property was introduced in Qt 4.6.
|
addremove |
This signal is emitted when a mouse button is double-clicked. The item the mouse was double-clicked on is specified by index. The signal is only emitted when the index is valid.
See also clicked() and activated().
|
getset |
This property holds the drag and drop event the view will act upon.
This property was introduced in Qt 4.2.
|
getset |
This property holds the view's drag and drop behavior.
If its value is true, the selected data will overwrite the existing item data when dropped, while moving the data will clear the item. If its value is false, the selected data will be inserted as a new item when the data is dropped. When the data is moved, the item is removed as well.
The default value is false, as in the QListView and QTreeView subclasses. In the QTableView subclass, on the other hand, the property has been set to true.
Note: This is not intended to prevent overwriting of items. The model's implementation of flags() should do that by not returning Qt::ItemIsDropEnabled.
This property was introduced in Qt 4.2.
|
getset |
This property holds whether the view supports dragging of its own items.
|
getset |
This property holds which actions will initiate item editing.
This property is a selection of flags defined by EditTrigger, combined using the OR operator. The view will only initiate the editing of an item if the action performed is set in this property.
|
getprotected |
|
addremove |
This signal is emitted when the mouse cursor enters the item specified by index. Mouse tracking needs to be enabled for this feature to work.
See also viewportEntered(), activated(), clicked(), doubleClicked(), and pressed().
|
getset |
This property holds how the view scrolls its contents in the horizontal direction.
This property controls how the view scroll its contents horizontally. Scrolling can be done either per pixel or per item.
This property was introduced in Qt 4.2.
|
getsetprotected |
Returns the horizontal scroll bar's steps per item.
Sets the horizontal scroll bar's steps per item to steps.
This is the number of steps used by the horizontal scroll bar to represent the width of an item.
Note that if the view has a horizontal header, the item steps will be ignored and the header section size will be used instead.
|
getset |
This property holds the size of items' icons.
Setting this property when the view is visible will cause the items to be laid out again.
|
getset |
Returns the model that this view is presenting.
Sets the model for the view to present.
This function will create and set a new selection model, replacing any model that was previously set with setSelectionModel(). However, the old selection model will not be deleted as it may be shared between several views. We recommend that you delete the old selection model if it is no longer required. This is done with the following code:
QItemSelectionModel *m = view->selectionModel();
view->setModel(new model);
delete m;
If both the old model and the old selection model do not have parents, or if their parents are long-lived objects, it may be preferable to call their deleteLater() functions to explicitly delete them.
The view does not take ownership of the model unless it is the model's parent object because the model may be shared between many different views.
|
addremove |
This signal is emitted when a mouse button is pressed. The item the mouse was pressed on is specified by index. The signal is only emitted when the index is valid.
Use the QApplication::mouseButtons() function to get the state of the mouse buttons.
See also activated(), clicked(), doubleClicked(), and entered().
|
getset |
Returns the model index of the model's root item. The root item is the parent item to the view's toplevel items. The root can be invalid.
Sets the root item to the item at the given index.
|
getset |
This property holds which selection behavior the view uses.
This property holds whether selections are done in terms of single items, rows or columns.
|
getset |
This property holds which selection mode the view operates in.
This property controls whether the user can select one or many items and, in many-item selections, whether the selection must be a continuous range of items.
|
getset |
Returns the current selection model.
Sets the current selection model to the given selectionModel.
Note that, if you call setModel() after this function, the given selectionModel will be replaced by one created by the view.
Note: It is up to the application to delete the old selection model if it is no longer needed; i.e., if it is not being used by other views. This will happen automatically when its parent object is deleted. However, if it does not have a parent, or if the parent is a long-lived object, it may be preferable to call its deleteLater() function to explicitly delete it.
|
getset |
This property holds whether the drop indicator is shown when dragging items and dropping.
|
getsetprotected |
Returns the item view's state.
Sets the item view's state to the given state.
|
staticget |
|
getset |
This property holds whether item navigation with tab and backtab is enabled.
|
getset |
This property holds the position of the "..." in elided text.
The default value for all item views is Qt::ElideRight.
|
getset |
This property holds how the view scrolls its contents in the vertical direction.
This property controls how the view scroll its contents vertically. Scrolling can be done either per pixel or per item.
This property was introduced in Qt 4.2.
|
getsetprotected |
Returns the vertical scroll bar's steps per item.
Sets the vertical scroll bar's steps per item to steps.
This is the number of steps used by the vertical scroll bar to represent the height of an item.
Note that if the view has a vertical header, the item steps will be ignored and the header section size will be used instead.
|
addremove |
This signal is emitted when the mouse cursor enters the viewport. Mouse tracking needs to be enabled for this feature to work.
See also entered().