Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QAbstractItemView Class Reference

#include <qabstractitemview.h>

Inheritance diagram for QAbstractItemView:

QAbstractScrollArea QFrame QWidget QObject QPaintDevice QHeaderView QListView QTableView QTreeView QListWidget QTableWidget QTreeWidget

List of all members.


Detailed Description

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 QAbstractItemView class is one of the {Model/View Classes} and is part of Qt's {Model/View Programming}{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(), columnsInserted(), columnsRemoved(), 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 setHorizontalFactor() and setVerticalFactor(). 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.

When implimenting a view that will have scrollbars you want to overload resizeEvent to set the scrollbars range so they will turn on and off, for example:

        horizontalScrollBar()->setRange(0, realWidth - width());
Note that QAbstractScrollView wont turn on/off the scroolbars based upon the ranges until the widget is shown. They should be manually turned on and off in if other functions require that information.

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.

See also:
{Model/View Programming}, QAbstractItemModel

Definition at line 41 of file qabstractitemview.h.


Public Types

enum  { Shadow_Mask = 0x00f0, Shape_Mask = 0x000f }
enum  EditTrigger {
  NoEditTriggers = 0, CurrentChanged = 1, DoubleClicked = 2, SelectedClicked = 4,
  EditKeyPressed = 8, AnyKeyPressed = 16, AllEditTriggers = 31
}
enum  PaintDeviceMetric {
  PdmWidth = 1, PdmHeight, PdmWidthMM, PdmHeightMM,
  PdmNumColors, PdmDepth, PdmDpiX, PdmDpiY,
  PdmPhysicalDpiX, PdmPhysicalDpiY
}
enum  ScrollHint { EnsureVisible, PositionAtTop, PositionAtBottom }
enum  SelectionBehavior { SelectItems, SelectRows, SelectColumns }
enum  SelectionMode {
  NoSelection, SingleSelection, MultiSelection, ExtendedSelection,
  ContiguousSelection
}
enum  Shadow { Plain = 0x0010, Raised = 0x0020, Sunken = 0x0030 }
enum  Shape {
  NoFrame = 0, Box = 0x0001, Panel = 0x0002, WinPanel = 0x0003,
  HLine = 0x0004, VLine = 0x0005, StyledPanel = 0x0006
}

Public Slots

void clearSelection ()
bool close ()
void deleteLater ()
virtual void doItemsLayout ()
void edit (const QModelIndex &index)
void hide ()
void lower ()
void raise ()
void repaint ()
virtual void reset ()
void scrollToBottom ()
void scrollToTop ()
virtual void selectAll ()
void setCurrentIndex (const QModelIndex &index)
void setDisabled (bool)
void setEnabled (bool)
void setFocus ()
void setHidden (bool hidden)
virtual void setRootIndex (const QModelIndex &index)
QT_MOC_COMPAT void setShown (bool shown)
virtual void setVisible (bool visible)
void setWindowModified (bool)
void show ()
void showFullScreen ()
void showMaximized ()
void showMinimized ()
void showNormal ()
void update ()

Signals

void activated (const QModelIndex &index)
void clicked (const QModelIndex &index)
void customContextMenuRequested (const QPoint &pos)
void destroyed (QObject *=0)
void doubleClicked (const QModelIndex &index)
void entered (const QModelIndex &index)
void pressed (const QModelIndex &index)
void viewportEntered ()

Public Member Functions

bool acceptDrops () const
QString accessibleDescription () const
QString accessibleName () const
QList< QAction * > actions () const
void activateWindow ()
void addAction (QAction *action)
void addActions (QList< QAction * > actions)
void adjustSize ()
bool alternatingRowColors () const
bool autoFillBackground () const
QPalette::ColorRole backgroundRole () const
QSize baseSize () const
bool blockSignals (bool b)
QWidgetchildAt (const QPoint &p) const
QWidgetchildAt (int x, int y) const
const QObjectListchildren () const
QRect childrenRect () const
QRegion childrenRegion () const
void clearFocus ()
void clearMask ()
void closePersistentEditor (const QModelIndex &index)
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
QRect contentsRect () const
Qt::ContextMenuPolicy contextMenuPolicy () const
QModelIndex currentIndex () const
QCursor cursor () const
int depth () const
int devType () const
bool disconnect (const QObject *receiver, const char *member=0)
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
bool dragEnabled () const
void dumpObjectInfo ()
void dumpObjectTree ()
EditTriggers editTriggers () const
void ensurePolished () const
virtual bool eventFilter (QObject *, QEvent *)
template<typename T>
findChild (const QString &name=QString()) const
template<typename T>
QList< T > findChildren (const QRegExp &re) const
template<typename T>
QList< T > findChildren (const QString &name=QString()) const
Qt::FocusPolicy focusPolicy () const
QWidgetfocusProxy () const
QWidgetfocusWidget () const
const QFontfont () const
QFontInfo fontInfo () const
QFontMetrics fontMetrics () const
QPalette::ColorRole foregroundRole () const
QRect frameGeometry () const
QRect frameRect () const
Shadow frameShadow () const
Shape frameShape () const
QSize frameSize () const
int frameStyle () const
int frameWidth () const
const QRectgeometry () const
void getContentsMargins (int *left, int *top, int *right, int *bottom) const
void grabKeyboard ()
void grabMouse (const QCursor &)
void grabMouse ()
int grabShortcut (const QKeySequence &key, Qt::ShortcutContext context=Qt::WindowShortcut)
Qt::HANDLE handle () const
bool hasAutoScroll () const
bool hasFocus () const
bool hasMouseTracking () const
int height () const
virtual int heightForWidth (int) const
int heightMM () const
QScrollBarhorizontalScrollBar () const
Qt::ScrollBarPolicy horizontalScrollBarPolicy () const
QSize iconSize () const
virtual QModelIndex indexAt (const QPoint &point) const =0
QWidgetindexWidget (const QModelIndex &index) const
bool inherits (const char *classname) const
QInputContextinputContext ()
virtual QVariant inputMethodQuery (Qt::InputMethodQuery) const
void insertAction (QAction *before, QAction *action)
void insertActions (QAction *before, QList< QAction * > actions)
void installEventFilter (QObject *)
bool isActiveWindow () const
bool isAncestorOf (const QWidget *child) const
bool isEnabled () const
bool isEnabledTo (QWidget *) const
bool isEnabledToTLW () const
bool isFullScreen () const
bool isHidden () const
bool isLeftToRight () const
bool isMaximized () const
bool isMinimized () const
bool isModal () const
bool isRightToLeft () const
bool isTopLevel () const
bool isVisible () const
bool isVisibleTo (QWidget *) const
bool isWidgetType () const
bool isWindow () const
bool isWindowModified () const
QAbstractItemDelegateitemDelegate () const
virtual void keyboardSearch (const QString &search)
void killTimer (int id)
QLayoutlayout () const
Qt::LayoutDirection layoutDirection () const
int lineWidth () const
int logicalDpiX () const
int logicalDpiY () const
QPoint mapFrom (QWidget *, const QPoint &) const
QPoint mapFromGlobal (const QPoint &) const
QPoint mapFromParent (const QPoint &) const
QPoint mapTo (QWidget *, const QPoint &) const
QPoint mapToGlobal (const QPoint &) const
QPoint mapToParent (const QPoint &) const
QRegion mask () const
int maximumHeight () const
QSize maximumSize () const
QSize maximumViewportSize () const
int maximumWidth () const
int midLineWidth () const
int minimumHeight () const
QSize minimumSize () const
QSize minimumSizeHint () const
int minimumWidth () const
QAbstractItemModelmodel () const
void move (const QPoint &)
void move (int x, int y)
void moveToThread (QThread *thread)
QWidgetnextInFocusChain () const
QRect normalGeometry () const
int numColors () const
QString objectName () const
void openPersistentEditor (const QModelIndex &index)
void overrideWindowFlags (Qt::WindowFlags type)
void overrideWindowState (Qt::WindowStates state)
QPaintEnginepaintEngine () const
bool paintingActive () const
const QPalettepalette () const
QObjectparent () const
QWidgetparentWidget () const
int physicalDpiX () const
int physicalDpiY () const
QPoint pos () const
QVariant property (const char *name) const
 QAbstractItemView (QWidget *parent=0)
QRect rect () const
void releaseKeyboard ()
void releaseMouse ()
void releaseShortcut (int id)
void removeAction (QAction *action)
void removeEventFilter (QObject *)
void repaint (const QRegion &)
void repaint (const QRect &)
void repaint (int x, int y, int w, int h)
void resize (const QSize &)
void resize (int w, int h)
QModelIndex rootIndex () const
void scroll (int dx, int dy, const QRect &)
void scroll (int dx, int dy)
virtual void scrollTo (const QModelIndex &index, ScrollHint hint=EnsureVisible)=0
QAbstractItemView::SelectionBehavior selectionBehavior () const
QAbstractItemView::SelectionMode selectionMode () const
QItemSelectionModelselectionModel () const
void setAcceptDrops (bool on)
void setAccessibleDescription (const QString &description)
void setAccessibleName (const QString &name)
void setAlternatingRowColors (bool enable)
void setAttribute (Qt::WidgetAttribute, bool on=true)
void setAutoFillBackground (bool enabled)
void setAutoScroll (bool enable)
void setBackgroundRole (QPalette::ColorRole)
void setBaseSize (int basew, int baseh)
void setBaseSize (const QSize &)
void setContentsMargins (int left, int top, int right, int bottom)
void setContextMenuPolicy (Qt::ContextMenuPolicy policy)
void setCursor (const QCursor &)
void setDragEnabled (bool enable)
void setDropIndicatorShown (bool enable)
void setEditTriggers (EditTriggers triggers)
void setFixedHeight (int h)
void setFixedSize (int w, int h)
void setFixedSize (const QSize &)
void setFixedWidth (int w)
void setFocus (Qt::FocusReason reason)
void setFocusPolicy (Qt::FocusPolicy policy)
void setFocusProxy (QWidget *)
void setFont (const QFont &)
void setForegroundRole (QPalette::ColorRole)
void setFrameRect (const QRect &)
void setFrameShadow (Shadow)
void setFrameShape (Shape)
void setFrameStyle (int)
void setGeometry (const QRect &)
void setGeometry (int x, int y, int w, int h)
void setHorizontalScrollBarPolicy (Qt::ScrollBarPolicy)
void setIconSize (const QSize &size)
void setIndexWidget (const QModelIndex &index, QWidget *widget)
void setInputContext (QInputContext *)
void setItemDelegate (QAbstractItemDelegate *delegate)
void setLayout (QLayout *)
void setLayoutDirection (Qt::LayoutDirection direction)
void setLineWidth (int)
void setMask (const QRegion &)
void setMask (const QBitmap &)
void setMaximumHeight (int maxh)
void setMaximumSize (int maxw, int maxh)
void setMaximumSize (const QSize &)
void setMaximumWidth (int maxw)
void setMidLineWidth (int)
void setMinimumHeight (int minh)
void setMinimumSize (int minw, int minh)
void setMinimumSize (const QSize &)
void setMinimumWidth (int minw)
virtual void setModel (QAbstractItemModel *model)
void setMouseTracking (bool enable)
void setObjectName (const QString &name)
void setPalette (const QPalette &)
void setParent (QObject *)
void setParent (QWidget *parent, Qt::WFlags f)
void setParent (QWidget *parent)
bool setProperty (const char *name, const QVariant &value)
void setSelectionBehavior (QAbstractItemView::SelectionBehavior behavior)
void setSelectionMode (QAbstractItemView::SelectionMode mode)
virtual void setSelectionModel (QItemSelectionModel *selectionModel)
void setShortcutEnabled (int id, bool enable=true)
void setSizeIncrement (int w, int h)
void setSizeIncrement (const QSize &)
void setSizePolicy (QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical)
void setSizePolicy (QSizePolicy)
void setStatusTip (const QString &)
void setStyle (QStyle *)
void setTabKeyNavigation (bool enable)
void setTextElideMode (Qt::TextElideMode mode)
void setToolTip (const QString &)
void setUpdatesEnabled (bool enable)
void setUserData (uint id, QObjectUserData *data)
void setVerticalScrollBarPolicy (Qt::ScrollBarPolicy)
void setWhatsThis (const QString &)
void setWindowFlags (Qt::WindowFlags type)
void setWindowIcon (const QIcon &icon)
void setWindowIconText (const QString &)
void setWindowModality (Qt::WindowModality windowModality)
void setWindowOpacity (qreal level)
void setWindowRole (const QString &)
void setWindowState (Qt::WindowStates state)
void setWindowTitle (const QString &)
bool showDropIndicator () const
bool signalsBlocked () const
QSize size () const
QSize sizeHint () const
virtual int sizeHintForColumn (int column) const
QSize sizeHintForIndex (const QModelIndex &index) const
virtual int sizeHintForRow (int row) const
QSize sizeIncrement () const
QSizePolicy sizePolicy () const
void stackUnder (QWidget *)
int startTimer (int interval)
QString statusTip () const
QStylestyle () const
bool tabKeyNavigation () const
bool testAttribute (Qt::WidgetAttribute) const
Qt::TextElideMode textElideMode () const
QThreadthread () const
QString toolTip () const
QWidgettopLevelWidget () const
bool underMouse () const
void unsetCursor ()
void unsetLayoutDirection ()
void update (const QRegion &)
void update (const QRect &)
void update (int x, int y, int w, int h)
void updateGeometry ()
bool updatesEnabled () const
QObjectUserData * userData (uint id) const
QScrollBarverticalScrollBar () const
Qt::ScrollBarPolicy verticalScrollBarPolicy () const
QWidgetviewport () const
QRegion visibleRegion () const
virtual QRect visualRect (const QModelIndex &index) const =0
QString whatsThis () const
int width () const
int widthMM () const
QWidgetwindow () const
Qt::WindowFlags windowFlags () const
QIcon windowIcon () const
QString windowIconText () const
Qt::WindowModality windowModality () const
qreal windowOpacity () const
QString windowRole () const
Qt::WindowStates windowState () const
QString windowTitle () const
Qt::WindowType windowType () const
WId winId () const
int x () const
int y () const
 ~QAbstractItemView ()

Static Public Member Functions

static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
static QWidgetfind (WId)
static QWidgetkeyboardGrabber ()
static QWidgetmouseGrabber ()
static uint registerUserData ()
static void setTabOrder (QWidget *, QWidget *)

Protected Types

enum  CursorAction {
  MoveUp, MoveDown, MoveLeft, MoveRight,
  MoveHome, MoveEnd, MovePageUp, MovePageDown,
  MoveNext, MovePrevious
}
enum  DropIndicatorPosition { OnItem, AboveItem, BelowItem, OnViewport }
enum  State {
  NoState, DraggingState, DragSelectingState, EditingState,
  ExpandingState, CollapsingState
}

Protected Slots

virtual void closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint)
virtual void commitData (QWidget *editor)
virtual void currentChanged (const QModelIndex &current, const QModelIndex &previous)
virtual void dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
virtual void editorDestroyed (QObject *editor)
virtual void horizontalScrollbarAction (int action)
virtual void horizontalScrollbarValueChanged (int value)
virtual void rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
virtual void rowsInserted (const QModelIndex &parent, int start, int end)
virtual void selectionChanged (const QItemSelection &selected, const QItemSelection &deselected)
virtual void updateEditorData ()
virtual void updateEditorGeometries ()
virtual void updateGeometries ()
virtual void verticalScrollbarAction (int action)
virtual void verticalScrollbarValueChanged (int value)

Protected Member Functions

virtual void actionEvent (QActionEvent *)
void changeEvent (QEvent *)
virtual void childEvent (QChildEvent *)
virtual void closeEvent (QCloseEvent *)
virtual void connectNotify (const char *signal)
void contextMenuEvent (QContextMenuEvent *)
void create (WId=0, bool initializeWindow=true, bool destroyOldWindow=true)
virtual void customEvent (QEvent *)
void destroy (bool destroyWindow=true, bool destroySubWindows=true)
QPoint dirtyRegionOffset () const
virtual void disconnectNotify (const char *signal)
void doAutoScroll ()
void dragEnterEvent (QDragEnterEvent *event)
void dragLeaveEvent (QDragLeaveEvent *event)
void dragMoveEvent (QDragMoveEvent *event)
void drawFrame (QPainter *)
void dropEvent (QDropEvent *event)
DropIndicatorPosition dropIndicatorPosition () const
virtual bool edit (const QModelIndex &index, EditTrigger trigger, QEvent *event)
virtual void enabledChange (bool)
virtual void enterEvent (QEvent *)
bool event (QEvent *event)
void executeDelayedItemsLayout ()
void focusInEvent (QFocusEvent *event)
bool focusNextChild ()
virtual bool focusNextPrevChild (bool next)
void focusOutEvent (QFocusEvent *event)
bool focusPreviousChild ()
virtual void fontChange (const QFont &)
virtual void hideEvent (QHideEvent *)
virtual int horizontalOffset () const =0
int horizontalStepsPerItem () const
virtual void inputMethodEvent (QInputMethodEvent *)
virtual bool isIndexHidden (const QModelIndex &index) const =0
void keyPressEvent (QKeyEvent *event)
virtual void keyReleaseEvent (QKeyEvent *)
virtual void languageChange ()
virtual void leaveEvent (QEvent *)
int metric (PaintDeviceMetric) const
void mouseDoubleClickEvent (QMouseEvent *event)
void mouseMoveEvent (QMouseEvent *event)
void mousePressEvent (QMouseEvent *event)
void mouseReleaseEvent (QMouseEvent *event)
virtual QModelIndex moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiers)=0
virtual void moveEvent (QMoveEvent *)
void paintEvent (QPaintEvent *)
virtual void paletteChange (const QPalette &)
 QAbstractItemView (QAbstractItemViewPrivate &, QWidget *parent=0)
int receivers (const char *signal) const
void resetInputContext ()
void resizeEvent (QResizeEvent *event)
void scheduleDelayedItemsLayout ()
virtual void scrollContentsBy (int dx, int dy)
void scrollDirtyRegion (int dx, int dy)
virtual QModelIndexList selectedIndexes () const
virtual
QItemSelectionModel::SelectionFlags 
selectionCommand (const QModelIndex &index, const QEvent *event=0) const
QObjectsender () const
void setDirtyRegion (const QRegion &region)
void setHorizontalStepsPerItem (int steps)
virtual void setSelection (const QRect &rect, QItemSelectionModel::SelectionFlags command)=0
void setState (State state)
void setVerticalStepsPerItem (int steps)
void setViewportMargins (int left, int top, int right, int bottom)
virtual void showEvent (QShowEvent *)
void startAutoScroll ()
virtual void startDrag (Qt::DropActions supportedActions)
State state () const
void stopAutoScroll ()
virtual void styleChange (QStyle &)
virtual void tabletEvent (QTabletEvent *)
void timerEvent (QTimerEvent *event)
void updateMicroFocus ()
virtual int verticalOffset () const =0
int verticalStepsPerItem () const
virtual QStyleOptionViewItem viewOptions () const
bool viewportEvent (QEvent *event)
virtual QRegion visualRegionForSelection (const QItemSelection &selection) const =0
void wheelEvent (QWheelEvent *)
virtual void windowActivationChange (bool)

Protected Attributes

QObjectData * d_ptr
ushort painters

Static Protected Attributes

static const QMetaObject staticQtMetaObject

Properties

bool acceptDrops
 whether drop events are enabled for this widget
QString accessibleDescription
 the widget's description as seen by assistive technologies
QString accessibleName
 the widget's name as seen by assistive technologies
bool alternatingRowColors
 whether to draw the background using alternating colors
bool autoFillBackground
 whether the widget background is filled automatically
bool autoScroll
 whether autoscrolling in drag move events is enabled
QSize baseSize
 the base size of the widget
QRect childrenRect
 the bounding rectangle of the widget's children
QRegion childrenRegion
 the combined region occupied by the widget's children
Qt::ContextMenuPolicy contextMenuPolicy
 how the widget shows a context menu
QCursor cursor
 the cursor shape for this widget
bool dragEnabled
 whether the view supports dragging of its own items
EditTriggers editTriggers
 which actions will initiate item editing
bool enabled
 whether the widget is enabled
bool focus
 whether this widget (or its focus proxy) has the keyboard input focus
Qt::FocusPolicy focusPolicy
 the way the widget accepts keyboard focus
QFont font
 the font currently set for the widget
QRect frameGeometry
 geometry of the widget relative to its parent including any window frame
QRect frameRect
 the frame's rectangle
Shadow frameShadow
 the frame shadow value from the frame style
Shape frameShape
 the frame shape value from the frame style
QSize frameSize
 the size of the widget including any window frame
int frameWidth
 the width of the frame that is drawn.
bool fullScreen
 whether the widget is full screen
QRect geometry
 the geometry of the widget relative to its parent and excluding the window frame
int height
 the height of the widget excluding any window frame
Qt::ScrollBarPolicy horizontalScrollBarPolicy
 the policy for the horizontal scroll bar
QSize iconSize
 the size of items
bool isActiveWindow
 whether this widget's window is the active window
Qt::LayoutDirection layoutDirection
 the layout direction for this widget
int lineWidth
 the line width
bool maximized
 whether this widget is maximized
int maximumHeight
 the widget's maximum height
QSize maximumSize
 the widget's maximum size
int maximumWidth
 the widget's maximum width
int midLineWidth
 the width of the mid-line
bool minimized
 whether this widget is minimized (iconified)
int minimumHeight
 the widget's minimum height
QSize minimumSize
 the widget's minimum size
QSize minimumSizeHint
 the recommended minimum size for the widget
int minimumWidth
 the widget's minimum width
bool modal
 whether the widget is a modal widget
bool mouseTracking
 whether mouse tracking is enabled for the widget
QRect normalGeometry
 the geometry a toplevel widget has when it is not maximized or fullscreen
QString objectName
 the name of this object
QPalette palette
 the widget's palette
QPoint pos
 the position of the widget within its parent widget
QRect rect
 the internal geometry of the widget excluding any window frame
SelectionBehavior selectionBehavior
 which selection behavior the view uses
SelectionMode selectionMode
 which selection mode the view operates in
bool showDropIndicator
 whether the drop indicator is shown when dragging items and dropping.
QSize size
 the size of the widget excluding any window frame
QSize sizeHint
 the recommended size for the widget
QSize sizeIncrement
 the size increment of the widget
QSizePolicy sizePolicy
 the default layout behavior of the widget
QString statusTip
 the widget's status tip
bool tabKeyNavigation
 whether item navigation with tab and backtab is enabled.
Qt::TextElideMode textElideMode
 the the position of the "..." in elided text.
QString toolTip
 the widget's tooltip
bool updatesEnabled
 whether updates are enabled
Qt::ScrollBarPolicy verticalScrollBarPolicy
 the policy for the vertical scroll bar
bool visible
 whether the widget is visible
QString whatsThis
 the widget's What's This help text.
int width
 the width of the widget excluding any window frame
QIcon windowIcon
 the widget's icon
QString windowIconText
 the widget's icon text
Qt::WindowModality windowModality
 which windows are blocked by the modal widget
bool windowModified
 whether the document shown in the window has unsaved changes
double windowOpacity
 The level of opacity for the window.
QString windowTitle
 the window title (caption)
int x
 the x coordinate of the widget relative to its parent including any window frame
int y
 the y coordinate of the widget relative to its parent and including any window frame

Private Member Functions

void columnsRemoved (const QModelIndex &, int, int)) Q_PRIVATE_SLOT(d_func()
 Q_PRIVATE_SLOT (d_func(), void columnsAboutToBeRemoved(const QModelIndex &, int, int)) Q_PRIVATE_SLOT(d_func()
void void rowsRemoved (const QModelIndex &, int, int)) friend class QTreeViewPrivate

Friends

class QCoreApplication
class QCoreApplicationPrivate
struct QMetaObject
class QThreadData
class QWidget

Related Functions

(Note that these are not member functions.)

qFindChild (const QObject *obj, const QString &name)
QList< T > qFindChildren (const QObject *obj, const QRegExp &regExp)
QList< T > qFindChildren (const QObject *obj, const QString &name)
T * qobject_cast (QObject *object)
 QObjectList
void * qt_find_obj_child (QObject *parent, const char *type, const QString &name)
const Q_GUI_EXPORT QX11Infoqt_x11Info (const QPaintDevice *pd)

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index