|
enum | EditTrigger { NoEditTriggers,
SelectedClicked
} |
|
enum | ViewState { NoState,
RefreshState
} |
|
|
void | setCurrentIndex (const QModelIndex &index) |
|
|
| AbstractScene (QQuickItem *parent=nullptr) |
|
virtual void | setModel (QAbstractItemModel *model) |
|
QAbstractItemModel * | model () const |
|
virtual void | setSelectionModel (QItemSelectionModel *selectionModel) |
|
QItemSelectionModel * | selectionModel () const |
|
QQuickItem * | instantiator () const |
|
void | setInstantiator (QQuickItem *instantiator) |
|
void | setEditTriggers (EditTriggers triggers) |
|
EditTriggers | editTriggers () const |
|
void | setContextMenuPolicy (Qt::ContextMenuPolicy contextMenuPolicy) |
|
Qt::ContextMenuPolicy | contextMenuPolicy () const |
|
QObject * | itemForIndex (const QModelIndex &index) const |
|
ViewState | viewState () const |
|
QModelIndex | currentIndex () const |
|
|
virtual void | selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) |
|
virtual void | currentChanged (const QModelIndex ¤t, const QModelIndex &previous) |
|
virtual void | rowsInserted (const QModelIndex &parent, int start, int end) |
|
virtual void | rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end) |
|
virtual void | layoutChanged () |
|
void | setViewState (ViewState state) |
|
|
bool | event (QEvent *event) override |
|
|
QAbstractItemModel | model |
|
QQuickItem | instantiator |
|
ViewState | viewState |
|
Qt::ContextMenuPolicy | ContextMenuPolicy |
|
This signal is emitted when the scene's contextMenuPolicy is Qt::CustomContextMenu, and the user has requested a context menu on the scene. The position pos is the position of the context menu event that the scene receives. Normally this is in scene coordinates.
void AbstractScene::layoutChanged |
( |
| ) |
|
|
protectedvirtualslot |
Called whenever the model's contents layout changed (for example when indices got moved around)
The documentation for this class was generated from the following files: