![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Public Member Functions | |
| QtPropertyEditorView (QWidget *parent=nullptr) | |
| void | setEditorPrivate (QtTreePropertyBrowserPrivate *editorPrivate) |
| QTreeWidgetItem * | indexToItem (const QModelIndex &indexindex) const |
| QtPropertyEditorView (QWidget *parent=nullptr) | |
| void | setEditorPrivate (QtTreePropertyBrowserPrivate *editorPrivate) |
| QTreeWidgetItem * | indexToItem (const QModelIndex &indexindex) const |
| Public Member Functions inherited from QTreeWidget | |
| QTreeWidget (QWidget *parent=nullptr) | |
| Constructs a tree widget with the given parent. | |
| ~QTreeWidget () | |
| Destroys the tree widget and all its items. | |
| int | columnCount () const |
| void | setColumnCount (int columns) |
| QTreeWidgetItem * | invisibleRootItem () const |
| Returns the tree widget's invisible root item. | |
| QTreeWidgetItem * | topLevelItem (int indexindex) const |
| Returns the top level item at the given index, or \nullptr if the item does not exist. | |
| int | topLevelItemCount () const |
| void | insertTopLevelItem (int indexindex, QTreeWidgetItem *item) |
| Inserts the item at index in the top level in the view. | |
| void | addTopLevelItem (QTreeWidgetItem *item) |
| Appends the item as a top-level item in the widget. | |
| QTreeWidgetItem * | takeTopLevelItem (int indexindex) |
| Removes the top-level item at the given index in the tree and returns it, otherwise returns \nullptr;. | |
| int | indexOfTopLevelItem (QTreeWidgetItem *item) const |
| Returns the index of the given top-level item, or -1 if the item cannot be found. | |
| void | insertTopLevelItems (int indexindex, const QList< QTreeWidgetItem * > &items) |
| Inserts the list of items at index in the top level in the view. | |
| void | addTopLevelItems (const QList< QTreeWidgetItem * > &items) |
| Appends the list of items as a top-level items in the widget. | |
| QTreeWidgetItem * | headerItem () const |
| Returns the item used for the tree widget's header. | |
| void | setHeaderItem (QTreeWidgetItem *item) |
| Sets the header item for the tree widget. | |
| void | setHeaderLabels (const QStringList &labels) |
| Adds a column in the header for each item in the labels list, and sets the label for each column. | |
| void | setHeaderLabel (const QString &labellabel) |
| Same as setHeaderLabels(QStringList(label)). | |
| QTreeWidgetItem * | currentItem () const |
| Returns the current item in the tree widget. | |
| int | currentColumn () const |
| Returns the current column in the tree widget. | |
| void | setCurrentItem (QTreeWidgetItem *item) |
| Sets the current item in the tree widget. | |
| void | setCurrentItem (QTreeWidgetItem *item, int columncolumn) |
| Sets the current item in the tree widget and the current column to column. | |
| void | setCurrentItem (QTreeWidgetItem *item, int columncolumn, QItemSelectionModel::SelectionFlags command) |
| Sets the current item in the tree widget and the current column to column, using the given command. | |
| QTreeWidgetItem * | itemAt (const QPoint &pp) const |
| Returns a pointer to the item at the coordinates p. | |
| QTreeWidgetItem * | itemAt (int xx, int yy) const |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Returns a pointer to the item at the coordinates (x, y). | |
| QRect | visualItemRect (const QTreeWidgetItem *item) const |
| Returns the rectangle on the viewport occupied by the item at item. | |
| int | sortColumn () const |
| Returns the column used to sort the contents of the widget. | |
| void | sortItems (int columncolumn, Qt::SortOrder orderorder) |
| Sorts the items in the widget in the specified order by the values in the given column. | |
| void | editItem (QTreeWidgetItem *item, int columncolumn=0) |
| Starts editing the item in the given column if it is editable. | |
| void | openPersistentEditor (QTreeWidgetItem *item, int columncolumn=0) |
| Opens a persistent editor for the item in the given column. | |
| void | closePersistentEditor (QTreeWidgetItem *item, int columncolumn=0) |
| Closes the persistent editor for the item in the given column. | |
| bool | isPersistentEditorOpen (QTreeWidgetItem *item, int columncolumn=0) const |
| QWidget * | itemWidget (QTreeWidgetItem *item, int columncolumn) const |
| Returns the widget displayed in the cell specified by item and the given column. | |
| void | setItemWidget (QTreeWidgetItem *item, int columncolumn, QWidget *widget) |
| Sets the given widget to be displayed in the cell specified by the given item and column. | |
| void | removeItemWidget (QTreeWidgetItem *item, int columncolumn) |
| Removes the widget set in the given item in the given column. | |
| QList< QTreeWidgetItem * > | selectedItems () const |
| Returns a list of all selected non-hidden items. | |
| QList< QTreeWidgetItem * > | findItems (const QString &text, Qt::MatchFlags flagsflags, int columncolumn=0) const |
| Returns a list of items that match the given text, using the given flags, in the given column. | |
| QTreeWidgetItem * | itemAbove (const QTreeWidgetItem *item) const |
| Returns the item above the given item. | |
| QTreeWidgetItem * | itemBelow (const QTreeWidgetItem *item) const |
| Returns the item visually below the given item. | |
| QModelIndex | indexFromItem (const QTreeWidgetItem *item, int columncolumn=0) const |
| Returns the QModelIndex associated with the given item in the given column. | |
| QTreeWidgetItem * | itemFromIndex (const QModelIndex &indexindex) const |
| Returns a pointer to the QTreeWidgetItem associated with the given index. | |
| void | setSelectionModel (QItemSelectionModel *selectionModel) override |
| \reimp | |
| bool | isPersistentEditorOpen (const QModelIndex &indexindex) const |
| Public Member Functions inherited from QTreeView | |
| QTreeView (QWidget *parent=nullptr) | |
| Constructs a tree view with a parent to represent a model's data. | |
| ~QTreeView () | |
| Destroys the tree view. | |
| void | setRootIndex (const QModelIndex &indexindex) override |
| \reimp | |
| QHeaderView * | header () const |
| Returns the header for the tree view. | |
| void | setHeader (QHeaderView *header) |
| Sets the header for the tree view, to the given header. | |
| int | autoExpandDelay () const |
| void | setAutoExpandDelay (int delay) |
| int | indentation () const |
| void | setIndentation (int i) |
| void | resetIndentation () |
| bool | rootIsDecorated () const |
| void | setRootIsDecorated (bool show) |
| bool | uniformRowHeights () const |
| void | setUniformRowHeights (bool uniform) |
| bool | itemsExpandable () const |
| void | setItemsExpandable (bool enableenable) |
| bool | expandsOnDoubleClick () const |
| void | setExpandsOnDoubleClick (bool enableenable) |
| int | columnViewportPosition (int columncolumn) const |
| Returns the horizontal position of the column in the viewport. | |
| int | columnWidth (int columncolumn) const |
| Returns the width of the column. | |
| void | setColumnWidth (int columncolumn, int widthwidth) |
| Sets the width of the given column to the width specified. | |
| int | columnAt (int xx) const |
| Returns the column in the tree view whose header covers the x coordinate given. | |
| bool | isColumnHidden (int columncolumn) const |
Returns true if the column is hidden; otherwise returns false. | |
| void | setColumnHidden (int columncolumn, bool hide) |
| If hide is true the column is hidden, otherwise the column is shown. | |
| bool | isHeaderHidden () const |
| void | setHeaderHidden (bool hide) |
| bool | isRowHidden (int rowrow, const QModelIndex &parent) const |
Returns true if the item in the given row of the parent is hidden; otherwise returns false. | |
| void | setRowHidden (int rowrow, const QModelIndex &parent, bool hide) |
| If hide is true the row with the given parent is hidden, otherwise the row is shown. | |
| bool | isFirstColumnSpanned (int rowrow, const QModelIndex &parent) const |
Returns true if the item in first column in the given row of the parent is spanning all the columns; otherwise returns false. | |
| void | setFirstColumnSpanned (int rowrow, const QModelIndex &parent, bool spanspan) |
| If span is true the item in the first column in the row with the given parent is set to span all columns, otherwise all items on the row are shown. | |
| bool | isExpanded (const QModelIndex &indexindex) const |
Returns true if the model item index is expanded; otherwise returns false. | |
| void | setExpanded (const QModelIndex &indexindex, bool expand) |
| Sets the item referred to by index to either collapse or expanded, depending on the value of expanded. | |
| void | setSortingEnabled (bool enableenable) |
| bool | isSortingEnabled () const |
| void | setAnimated (bool enableenable) |
| bool | isAnimated () const |
| void | setAllColumnsShowFocus (bool enableenable) |
| bool | allColumnsShowFocus () const |
| void | setWordWrap (bool on) |
| bool | wordWrap () const |
| void | setTreePosition (int logicalIndex) |
| int | treePosition () const |
| void | keyboardSearch (const QString &search) override |
| \reimp | |
| QRect | visualRect (const QModelIndex &indexindex) const override |
| Returns the rectangle on the viewport occupied by the item at index. | |
| QRect | itemDecorationRect (const QModelIndex &indexindex) const |
| Returns the rectangle occupied by the expand/collapse indicator of the item at index. | |
| void | scrollTo (const QModelIndex &indexindex, ScrollHint hint=EnsureVisible) override |
| Scroll the contents of the tree view until the given model item index is visible. | |
| QModelIndex | indexAt (const QPoint &pp) const override |
| \reimp | |
| QModelIndex | indexAbove (const QModelIndex &indexindex) const |
| Returns the model index of the item above index. | |
| QModelIndex | indexBelow (const QModelIndex &indexindex) const |
| Returns the model index of the item below index. | |
| void | doItemsLayout () override |
| void | reset () override |
| \reimp | |
| void | dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight, const QList< int > &roles=QList< int >()) override |
| \reimp | |
| void | selectAll () override |
| \reimp | |
| Public Member Functions inherited from QAbstractItemView | |
| QAbstractItemView (QWidget *parent=nullptr) | |
| Constructs an abstract item view with the given parent. | |
| ~QAbstractItemView () | |
| Destroys the view. | |
| QAbstractItemModel * | model () const |
| Returns the model that this view is presenting. | |
| QItemSelectionModel * | selectionModel () const |
| Returns the current selection model. | |
| void | setItemDelegate (QAbstractItemDelegate *delegate) |
| Sets the item delegate for this view and its model to delegate. | |
| QAbstractItemDelegate * | itemDelegate () const |
| Returns the item delegate used by this view and model. | |
| void | setSelectionMode (QAbstractItemView::SelectionMode modemode) |
| QAbstractItemView::SelectionMode | selectionMode () const |
| void | setSelectionBehavior (QAbstractItemView::SelectionBehavior behavior) |
| QAbstractItemView::SelectionBehavior | selectionBehavior () const |
| QModelIndex | currentIndex () const |
| Returns the model index of the current item. | |
| QModelIndex | rootIndex () const |
| Returns the model index of the model's root item. | |
| void | setEditTriggers (EditTriggers triggers) |
| EditTriggers | editTriggers () const |
| void | setVerticalScrollMode (ScrollMode modemode) |
| ScrollMode | verticalScrollMode () const |
| void | resetVerticalScrollMode () |
| void | setHorizontalScrollMode (ScrollMode modemode) |
| ScrollMode | horizontalScrollMode () const |
| void | resetHorizontalScrollMode () |
| void | setAutoScroll (bool enableenable) |
| bool | hasAutoScroll () const |
| void | setAutoScrollMargin (int margin) |
| int | autoScrollMargin () const |
| void | setTabKeyNavigation (bool enableenable) |
| bool | tabKeyNavigation () const |
| void | setAlternatingRowColors (bool enableenable) |
| bool | alternatingRowColors () const |
| void | setIconSize (const QSize &sizesize) |
| QSize | iconSize () const |
| void | setTextElideMode (Qt::TextElideMode modemode) |
| Qt::TextElideMode | textElideMode () const |
| QSize | sizeHintForIndex (const QModelIndex &indexindex) const |
| Returns the size hint for the item with the specified index or an invalid size for invalid indexes. | |
| virtual int | sizeHintForRow (int rowrow) const |
| Returns the height size hint for the specified row or -1 if there is no model. | |
| int | updateThreshold () const |
| void | setUpdateThreshold (int threshold) |
| Qt::MatchFlags | keyboardSearchFlags () const |
| void | setKeyboardSearchFlags (Qt::MatchFlags searchFlags) |
| void | openPersistentEditor (const QModelIndex &indexindex) |
| Opens a persistent editor on the item at the given index. | |
| void | closePersistentEditor (const QModelIndex &indexindex) |
| Closes the persistent editor for the item at the given index. | |
| bool | isPersistentEditorOpen (const QModelIndex &indexindex) const |
| void | setIndexWidget (const QModelIndex &indexindex, QWidget *widget) |
| Sets the given widget on the item at the given index, passing the ownership of the widget to the viewport. | |
| QWidget * | indexWidget (const QModelIndex &indexindex) const |
| Returns the widget for the item at the given index. | |
| void | setItemDelegateForRow (int rowrow, QAbstractItemDelegate *delegate) |
| Sets the given item delegate used by this view and model for the given row. | |
| QAbstractItemDelegate * | itemDelegateForRow (int rowrow) const |
| Returns the item delegate used by this view and model for the given row, or \nullptr if no delegate has been assigned. | |
| void | setItemDelegateForColumn (int columncolumn, QAbstractItemDelegate *delegate) |
| Sets the given item delegate used by this view and model for the given column. | |
| QAbstractItemDelegate * | itemDelegateForColumn (int columncolumn) const |
| Returns the item delegate used by this view and model for the given column. | |
| virtual QAbstractItemDelegate * | itemDelegateForIndex (const QModelIndex &indexindex) const |
| virtual QVariant | inputMethodQuery (Qt::InputMethodQuery queryquery) const override |
| \reimp | |
| void | update (int xx, int yy, int ww, int hh) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.This version updates a rectangle (x, y, w, h) inside the widget. | |
| void | update (const QRect &) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.This version updates a rectangle rect inside the widget. | |
| void | update (const QRegion &) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.This version repaints a region rgn inside the widget. | |
Protected Member Functions | |
| void | keyPressEvent (QKeyEvent *eventevent) override |
| void | mousePressEvent (QMouseEvent *eventevent) override |
| void | drawRow (QPainter *painter, const QStyleOptionViewItem &optionoption, const QModelIndex &indexindex) const override |
| Draws the row in the tree view that contains the model item index, using the painter given. | |
| void | keyPressEvent (QKeyEvent *eventevent) override |
| void | mousePressEvent (QMouseEvent *eventevent) override |
| void | drawRow (QPainter *painter, const QStyleOptionViewItem &optionoption, const QModelIndex &indexindex) const override |
| Draws the row in the tree view that contains the model item index, using the painter given. | |
| Protected Member Functions inherited from QTreeWidget | |
| bool | event (QEvent *e) override |
| \reimp | |
| virtual QStringList | mimeTypes () const |
| Returns a list of MIME types that can be used to describe a list of treewidget items. | |
| virtual QMimeData * | mimeData (const QList< QTreeWidgetItem * > &items) const |
| Returns an object that contains a serialized description of the specified items. | |
| virtual bool | dropMimeData (QTreeWidgetItem *parent, int indexindex, const QMimeData *datadata, Qt::DropAction action) |
| Handles the data supplied by a drag and drop operation that ended with the given action in the index in the given parent item. | |
| virtual Qt::DropActions | supportedDropActions () const |
| Returns the drop actions supported by this view. | |
| Protected Member Functions inherited from QTreeView | |
| QTreeView (QTreeViewPrivate &dd, QWidget *parent=nullptr) | |
| void | scrollContentsBy (int dx, int dy) override |
| Scrolls the contents of the tree view by (dx, dy). | |
| void | rowsInserted (const QModelIndex &parent, int startstart, int endend) override |
| Informs the view that the rows from the start row to the end row inclusive have been inserted into the parent model item. | |
| void | rowsAboutToBeRemoved (const QModelIndex &parent, int startstart, int endend) override |
| Informs the view that the rows from the start row to the end row inclusive are about to removed from the given parent model item. | |
| QModelIndex | moveCursor (CursorAction cursorAction, Qt::KeyboardModifiers modifiersmodifiers) override |
| Move the cursor in the way described by cursorAction, using the information provided by the button modifiers. | |
| int | horizontalOffset () const override |
| Returns the horizontal offset of the items in the treeview. | |
| int | verticalOffset () const override |
| Returns the vertical offset of the items in the tree view. | |
| void | setSelection (const QRect &rect, QItemSelectionModel::SelectionFlags command) override |
| Applies the selection command to the items in or touched by the rectangle, rect. | |
| QRegion | visualRegionForSelection (const QItemSelection &selection) const override |
| Returns the rectangle from the viewport of the items in the given selection. | |
| QModelIndexList | selectedIndexes () const override |
| \reimp | |
| void | changeEvent (QEvent *eventevent) override |
| \reimp | |
| void | timerEvent (QTimerEvent *eventevent) override |
| \reimp | |
| void | paintEvent (QPaintEvent *eventevent) override |
| \reimp | |
| void | drawTree (QPainter *painter, const QRegion ®ion) const |
| Draws the part of the tree intersecting the given region using the specified painter. | |
| virtual void | drawBranches (QPainter *painter, const QRect &rect, const QModelIndex &indexindex) const |
| Draws the branches in the tree view on the same row as the model item index, using the painter given. | |
| void | mousePressEvent (QMouseEvent *eventevent) override |
| \reimp | |
| void | mouseReleaseEvent (QMouseEvent *eventevent) override |
| \reimp | |
| void | mouseDoubleClickEvent (QMouseEvent *eventevent) override |
| \reimp | |
| void | mouseMoveEvent (QMouseEvent *eventevent) override |
| \reimp | |
| void | keyPressEvent (QKeyEvent *eventevent) override |
| \reimp | |
| bool | viewportEvent (QEvent *eventevent) override |
| \reimp | |
| void | updateGeometries () override |
| \reimp | |
| QSize | viewportSizeHint () const override |
| \reimp | |
| int | sizeHintForColumn (int columncolumn) const override |
| Returns the size hint for the column's width or -1 if there is no model. | |
| int | indexRowSizeHint (const QModelIndex &indexindex) const |
| Returns the size hint for the row indicated by index. | |
| int | rowHeight (const QModelIndex &indexindex) const |
| Returns the height of the row indicated by the given index. | |
| void | horizontalScrollbarAction (int action) override |
| bool | isIndexHidden (const QModelIndex &indexindex) const override |
| \reimp | |
| void | selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) override |
| \reimp | |
| void | currentChanged (const QModelIndex ¤t, const QModelIndex &previous) override |
| \reimp | |
| Protected Member Functions inherited from QAbstractItemView | |
| QAbstractItemView (QAbstractItemViewPrivate &, QWidget *parent=nullptr) | |
| virtual bool | edit (const QModelIndex &indexindex, EditTrigger trigger, QEvent *eventevent) |
Starts editing the item at index, creating an editor if necessary, and returns true if the view's \l{State} is now EditingState; otherwise returns false. | |
| virtual QItemSelectionModel::SelectionFlags | selectionCommand (const QModelIndex &indexindex, const QEvent *eventevent=nullptr) const |
| Returns the SelectionFlags to be used when updating a selection model for the specified index. | |
| virtual void | initViewItemOption (QStyleOptionViewItem *optionoption) const |
| State | state () const |
| Returns the item view's state. | |
| void | setState (State state) |
| Sets the item view's state to the given state. | |
| void | scheduleDelayedItemsLayout () |
| Schedules a layout of the items in the view to be executed when the event processing starts. | |
| void | executeDelayedItemsLayout () |
| Executes the scheduled layouts without waiting for the event processing to begin. | |
| void | setDirtyRegion (const QRegion ®ion) |
| Marks the given region as dirty and schedules it to be updated. | |
| void | scrollDirtyRegion (int dx, int dy) |
| Prepares the view for scrolling by ({dx},{dy}) pixels by moving the dirty regions in the opposite direction. | |
| QPoint | dirtyRegionOffset () const |
| Returns the offset of the dirty regions in the view. | |
| void | startAutoScroll () |
| void | stopAutoScroll () |
| void | doAutoScroll () |
| bool | focusNextPrevChild (bool next) override |
| \reimp | |
| bool | event (QEvent *eventevent) override |
| \reimp | |
| bool | viewportEvent (QEvent *eventevent) override |
| This function is used to handle tool tips, and What's This? | |
| void | mousePressEvent (QMouseEvent *eventevent) override |
| This function is called with the given event when a mouse button is pressed while the cursor is inside the widget. | |
| void | mouseMoveEvent (QMouseEvent *eventevent) override |
| This function is called with the given event when a mouse move event is sent to the widget. | |
| void | mouseReleaseEvent (QMouseEvent *eventevent) override |
| This function is called with the given event when a mouse button is released, after a mouse press event on the widget. | |
| void | mouseDoubleClickEvent (QMouseEvent *eventevent) override |
| This function is called with the given event when a mouse button is double clicked inside the widget. | |
| void | focusInEvent (QFocusEvent *eventevent) override |
| This function is called with the given event when the widget obtains the focus. | |
| void | focusOutEvent (QFocusEvent *eventevent) override |
| This function is called with the given event when the widget loses the focus. | |
| void | keyPressEvent (QKeyEvent *eventevent) override |
| This function is called with the given event when a key event is sent to the widget. | |
| void | resizeEvent (QResizeEvent *eventevent) override |
| This function is called with the given event when a resize event is sent to the widget. | |
| void | timerEvent (QTimerEvent *eventevent) override |
| This function is called with the given event when a timer event is sent to the widget. | |
| void | inputMethodEvent (QInputMethodEvent *eventevent) override |
| \reimp | |
| bool | eventFilter (QObject *objectobject, QEvent *eventevent) override |
| \reimp | |
| QSize | viewportSizeHint () const override |
Additional Inherited Members | |
| Public Types inherited from QAbstractItemView | |
| enum | SelectionMode { NoSelection , SingleSelection , MultiSelection , ExtendedSelection , ContiguousSelection } |
| This enum indicates how the view responds to user selections: More... | |
| enum | SelectionBehavior { SelectItems , SelectRows , SelectColumns } |
| \value SelectItems Selecting single items. More... | |
| enum | ScrollHint { EnsureVisible , PositionAtTop , PositionAtBottom , PositionAtCenter } |
| \value EnsureVisible Scroll to ensure that the item is visible. More... | |
| enum | EditTrigger { NoEditTriggers = 0 , CurrentChanged = 1 , DoubleClicked = 2 , SelectedClicked = 4 , EditKeyPressed = 8 , AnyKeyPressed = 16 , AllEditTriggers = 31 } |
| This enum describes actions which will initiate item editing. More... | |
| enum | ScrollMode { ScrollPerItem , ScrollPerPixel } |
| Describes how the scrollbar should behave. More... | |
| Public Slots inherited from QTreeWidget | |
| void | scrollToItem (const QTreeWidgetItem *item, QAbstractItemView::ScrollHint hint=EnsureVisible) |
| Ensures that the item is visible, scrolling the view if necessary using the specified hint. | |
| void | expandItem (const QTreeWidgetItem *item) |
| Expands the item. | |
| void | collapseItem (const QTreeWidgetItem *item) |
| Closes the item. | |
| void | clear () |
| Clears the tree widget by removing all of its items and selections. | |
| Public Slots inherited from QTreeView | |
| void | hideColumn (int columncolumn) |
| Hides the column given. | |
| void | showColumn (int columncolumn) |
| Shows the given column in the tree view. | |
| void | expand (const QModelIndex &indexindex) |
| Expands the model item specified by the index. | |
| void | collapse (const QModelIndex &indexindex) |
| Collapses the model item specified by the index. | |
| void | resizeColumnToContents (int columncolumn) |
| Resizes the column given to the size of its contents. | |
| void | sortByColumn (int columncolumn, Qt::SortOrder orderorder) |
| Sorts the model by the values in the given column and order. | |
| void | expandAll () |
| Expands all expandable items. | |
| void | expandRecursively (const QModelIndex &indexindex, int depthdepth=-1) |
| void | collapseAll () |
| Collapses all expanded items. | |
| void | expandToDepth (int depthdepth) |
| Expands all expandable items to the given depth. | |
| Public Slots inherited from QAbstractItemView | |
| void | edit (const QModelIndex &indexindex) |
| Starts editing the item corresponding to the given index if it is editable. | |
| void | clearSelection () |
| Deselects all selected items. | |
| void | setCurrentIndex (const QModelIndex &indexindex) |
| Sets the current item to be the item at index. | |
| void | scrollToTop () |
| Scrolls the view to the top. | |
| void | scrollToBottom () |
| Scrolls the view to the bottom. | |
| void | update (const QModelIndex &indexindex) |
| Updates the area occupied by the given index. | |
| void | update () |
| Updates the widget unless updates are disabled or the widget is hidden. | |
| Signals inherited from QTreeWidget | |
| void | itemPressed (QTreeWidgetItem *item, int columncolumn) |
| This signal is emitted when the user presses a mouse button inside the widget. | |
| void | itemClicked (QTreeWidgetItem *item, int columncolumn) |
| This signal is emitted when the user clicks inside the widget. | |
| void | itemDoubleClicked (QTreeWidgetItem *item, int columncolumn) |
| This signal is emitted when the user double clicks inside the widget. | |
| void | itemActivated (QTreeWidgetItem *item, int columncolumn) |
| This signal is emitted when the user activates an item by single- or double-clicking (depending on the platform, i.e. | |
| void | itemEntered (QTreeWidgetItem *item, int columncolumn) |
| This signal is emitted when the mouse cursor enters an item over the specified column. | |
| void | itemChanged (QTreeWidgetItem *item, int columncolumn) |
| This signal is emitted when the contents of the column in the specified item changes. | |
| void | itemExpanded (QTreeWidgetItem *item) |
| This signal is emitted when the specified item is expanded so that all of its children are displayed. | |
| void | itemCollapsed (QTreeWidgetItem *item) |
| This signal is emitted when the specified item is collapsed so that none of its children are displayed. | |
| void | currentItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous) |
| This signal is emitted when the current item changes. | |
| void | itemSelectionChanged () |
| This signal is emitted when the selection changes in the tree widget. | |
| Signals inherited from QTreeView | |
| void | expanded (const QModelIndex &indexindex) |
| This signal is emitted when the item specified by index is expanded. | |
| void | collapsed (const QModelIndex &indexindex) |
| This signal is emitted when the item specified by index is collapsed. | |
| Signals inherited from QAbstractItemView | |
| void | pressed (const QModelIndex &indexindex) |
| This signal is emitted when a mouse button is pressed. | |
| void | clicked (const QModelIndex &indexindex) |
| This signal is emitted when a mouse button is left-clicked. | |
| void | doubleClicked (const QModelIndex &indexindex) |
| This signal is emitted when a mouse button is double-clicked. | |
| void | activated (const QModelIndex &indexindex) |
| This signal is emitted when the item specified by index is activated by the user. | |
| void | entered (const QModelIndex &indexindex) |
| This signal is emitted when the mouse cursor enters the item specified by index. | |
| void | viewportEntered () |
| This signal is emitted when the mouse cursor enters the viewport. | |
| void | iconSizeChanged (const QSize &sizesize) |
| Protected Types inherited from QAbstractItemView | |
| enum | CursorAction { MoveUp , MoveDown , MoveLeft , MoveRight , MoveHome , MoveEnd , MovePageUp , MovePageDown , MoveNext , MovePrevious } |
| This enum describes the different ways to navigate between items,. More... | |
| enum | State { NoState , DraggingState , DragSelectingState , EditingState , ExpandingState , CollapsingState , AnimatingState } |
| Describes the different states the view can be in. More... | |
| Protected Slots inherited from QTreeView | |
| void | columnResized (int columncolumn, int oldSize, int newSize) |
| This function is called whenever {column}'s size is changed in the header. | |
| void | columnCountChanged (int oldCount, int newCount) |
| Informs the tree view that the number of columns in the tree view has changed from oldCount to newCount. | |
| void | columnMoved () |
| This slot is called whenever a column has been moved. | |
| void | reexpand () |
| void | rowsRemoved (const QModelIndex &parent, int firstfirst, int last) |
| Informs the view that the rows from the start row to the end row inclusive have been removed from the given parent model item. | |
| void | verticalScrollbarValueChanged (int valuevalue) override |
| Protected Slots inherited from QAbstractItemView | |
| virtual void | updateEditorData () |
| virtual void | updateEditorGeometries () |
| virtual void | verticalScrollbarAction (int action) |
| virtual void | verticalScrollbarValueChanged (int valuevalue) |
| virtual void | horizontalScrollbarValueChanged (int valuevalue) |
| virtual void | closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint) |
| Closes the given editor, and releases it. | |
| virtual void | commitData (QWidget *editor) |
| Commit the data in the editor to the model. | |
| virtual void | editorDestroyed (QObject *editor) |
| This function is called when the given editor has been destroyed. | |
| Properties inherited from QTreeWidget | |
| int | columnCount |
| the number of columns displayed in the tree widget | |
| int | topLevelItemCount |
| the number of top-level items | |
| Properties inherited from QTreeView | |
| int | autoExpandDelay |
| The delay time before items in a tree are opened during a drag and drop operation. | |
| int | indentation |
| indentation of the items in the tree view. | |
| bool | rootIsDecorated |
| whether to show controls for expanding and collapsing top-level items | |
| bool | uniformRowHeights |
| whether all items in the treeview have the same height | |
| bool | itemsExpandable |
| whether the items are expandable by the user. | |
| bool | sortingEnabled |
| whether sorting is enabled | |
| bool | animated |
| whether animations are enabled | |
| bool | allColumnsShowFocus |
| whether items should show keyboard focus using all columns | |
| bool | wordWrap |
| the item text word-wrapping policy | |
| bool | headerHidden |
| whether the header is shown or not. | |
| bool | expandsOnDoubleClick |
| whether the items can be expanded by double-clicking. | |
| Properties inherited from QAbstractItemView | |
| bool | autoScroll |
| whether autoscrolling in drag move events is enabled | |
| int | autoScrollMargin |
| the size of the area when auto scrolling is triggered | |
| EditTriggers | editTriggers |
| which actions will initiate item editing | |
| bool | tabKeyNavigation |
| whether item navigation with tab and backtab is enabled. | |
| bool | alternatingRowColors |
| whether to draw the background using alternating colors | |
| SelectionMode | selectionMode |
| which selection mode the view operates in | |
| SelectionBehavior | selectionBehavior |
| which selection behavior the view uses | |
| QSize | iconSize |
| the size of items' icons | |
| Qt::TextElideMode | textElideMode |
| the position of the "..." in elided text. | |
| ScrollMode | verticalScrollMode |
| how the view scrolls its contents in the vertical direction | |
| ScrollMode | horizontalScrollMode |
| how the view scrolls its contents in the horizontal direction | |
| int | updateThreshold |
| Qt::MatchFlags | keyboardSearchFlags |
Definition at line 94 of file qttreepropertybrowser.cpp.
Definition at line 115 of file qttreepropertybrowser.cpp.
|
overrideprotectedvirtual |
Draws the row in the tree view that contains the model item index, using the painter given.
The option controls how the item is displayed.
Reimplemented from QTreeView.
Definition at line 121 of file qttreepropertybrowser.cpp.
References QtProperty::hasValue(), and QtTreePropertyBrowserPrivate::markPropertiesWithoutValue().
|
overrideprotectedvirtual |
Draws the row in the tree view that contains the model item index, using the painter given.
The option controls how the item is displayed.
Reimplemented from QTreeView.
|
inline |
Definition at line 103 of file qttreepropertybrowser.cpp.
|
inline |
Definition at line 103 of file qttreepropertybrowser.cpp.
Definition at line 149 of file qttreepropertybrowser.cpp.
References QtTreePropertyBrowserPrivate::editedItem().
|
overrideprotected |
Definition at line 175 of file qttreepropertybrowser.cpp.
References QtTreePropertyBrowserPrivate::hasValue(), and QtTreePropertyBrowserPrivate::markPropertiesWithoutValue().
|
overrideprotected |
|
inline |
Definition at line 100 of file qttreepropertybrowser.cpp.
Referenced by QtTreePropertyBrowserPrivate::init().
|
inline |
Definition at line 100 of file qttreepropertybrowser.cpp.