亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? qabstractitemmodel.cpp

?? QT 開發環境里面一個很重要的文件
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
    Returns the flags for the item referred to by the index.*//*!    \fn bool QModelIndex::operator==(const QModelIndex &other) const    Returns true if this model index refers to the same location as    the \a other model index; otherwise returns false.    Note that all values in the model index are used when comparing    with another model index.*//*!    \fn bool QModelIndex::operator!=(const QModelIndex &other) const    Returns true if this model index does not refer to the same    location as the \a other model index; otherwise returns false.*//*!  \fn QModelIndex QModelIndex::parent() const  Returns the parent of the model index, or QModelIndex() if it has no  parent.  \sa child() sibling() model()*//*!    \class QAbstractItemModel    \brief The QAbstractItemModel class provides the abstract interface for    item model classes.    \ingroup model-view    \mainclass    The QAbstractItemModel class defines the standard interface that    item models must use to be able to interoperate with other    components in the model/view architecture. It is not supposed to    be instantiated directly. Instead, you should subclass it to create    new models.    The QAbstractItemModel class is one of the \l{Model/View Classes}    and is part of Qt's \l{Model/View Programming}{model/view framework}.    If you need a model to use with a QListView or a QTableView, you    should consider subclassing QAbstractListModel or QAbstractTableModel    instead of this class.    The underlying data model is exposed to views and delegates as    a hierarchy of tables. If you don't make use of the hierarchy,    then the model is a simple table of rows and columns. Each item    has a unique index specified by a QModelIndex.    \img modelindex-no-parent.png    Every item of data that can be accessed via a model has an associated    model index that is obtained using the index() function. Each index    may have a sibling() index; child items have a parent() index.    Each item has a number of data elements associated with it, and each    of these can be retrieved by specifying a role (see \l Qt::ItemDataRole)    to the model's data() function. Data for all available roles can be    obtained at the same time using the itemData() function.    Data for each role is set using a particular \l Qt::ItemDataRole.    Data for individual roles are set individually with setData(), or they    can be set for all roles with setItemData().    Items can be queried with flags() (see \l Qt::ItemFlag) to see if they    can be selected, dragged, or manipulated in other ways.    If an item has child objects, hasChildren() returns true for the    corresponding index.    The model has a rowCount() and a columnCount() for each level of    the hierarchy. Rows and columns can be inserted and removed with    insertRows(), insertColumns(), removeRows(), and removeColumns().    The model emits signals to indicate changes. For example,    dataChanged() is emitted whenever items of data made available by    the model are changed. Changes to the headers supplied by the model    cause headerDataChanged() to be emitted. If the structure of the    underlying data changes, the model can emit layoutChanged() to    indicate to any attached views that they should redisplay any items    shown, taking the new structure into account.    The items available through the model can be searched for particular    data using the match() function.    If the model is sortable, it can be sorted with sort().    \section1 Subclassing    \bold{Note:} Some general guidelines for subclassing models are    available in the \l{Model Subclassing Reference}.    When subclassing QAbstractItemModel, at the very least you must    implement index(), parent(), rowCount(), columnCount(), and    data(). These functions are used in all read-only models, and    form the basis of editable models.    You can also reimplement hasChildren() to provide special behavior    for models where the implementation of rowCount() is expensive.    This makes it possible for models to restrict the amount of data    requested by views, and can be used as a way to implement lazy    population of model data.    To enable editing in your model, you must also implement    setData(), and reimplement flags() to ensure that \c    ItemIsEditable is returned.  You can also reimplement headerData()    and setHeaderData() to control the way the headers for your model    are presented.    Note that the dataChanged() and headerDataChanged() signals must    be emitted explicitly when reimplementing the setData() and    setHeaderData() functions, respectively.    Custom models need to create model indexes for other components to use.    To do this, call createIndex() with suitable row and column numbers for    the item, and supply a unique identifier for the item, either as a    pointer or as an integer value. Custom models typically use these    unique identifiers in other reimplemented functions to retrieve item    data and access information about the item's parents and children.    See the \l{itemviews/simpletreemodel}{Simple Tree Model} example for    more information about unique identifiers.    It is not necessary to support every role defined in Qt::ItemDataRole.    Depending on the type of data contained within a model, it may only be    useful to implement the data() function to return valid information for    some of the more common roles. Most models provide at least a textual    representation of item data for the Qt::DisplayRole, and well-behaved    models should also provide valid information for the Qt::ToolTipRole    and Qt::WhatsThisRole. Supporting these roles enables models to be used    with standard Qt views. However, for some models that handle    highly-specialized data, it may be appropriate to provide data only for    user-defined roles.    Models that provide interfaces to resizable data structures can    provide implementations of insertRows(), removeRows(), insertColumns(),    and removeColumns(). When implementing these functions, it is    important to notify any connected views about changes to the model's    dimensions both \e before and \e after they occur:    \list    \o An insertRows() implementation must call beginInsertRows()       \e before inserting new rows into the data structure, and it must       call endInsertRows() \e{immediately afterwards}.    \o An insertColumns() implementation must call beginInsertColumns()       \e before inserting new columns into the data structure, and it must       call endInsertColumns() \e{immediately afterwards}.    \o A removeRows() implementation must call beginRemoveRows()       \e before the rows are removed from the data structure, and it must       call endRemoveRows() \e{immediately afterwards}.    \o A removeColumns() implementation must call beginRemoveColumns()       \e before the columns are removed from the data structure, and it must       call endRemoveColumns() \e{immediately afterwards}.    \endlist    The \e private signals that these functions emit give attached components    the chance to take action before any data becomes unavailable. The    encapsulation of the insert and remove operations with these begin and end    functions also enables the model to manage    \l{QPersistentModelIndex}{persistent model indexes} correctly.    \bold{If you want selections to be handled properly, you must ensure that    you call these functions.}    \sa {Model/View Programming}, QModelIndex, QAbstractItemView,        {Using Drag and Drop with Item Views}, {Simple DOM Model Example},        {Simple Tree Model Example}*//*!    \fn QModelIndex QAbstractItemModel::index(int row, int column, const QModelIndex &parent) const = 0    Returns the index of the item in the model specified by the given \a row,    \a column and \a parent index.    When reimplementing this function in a subclass, call createIndex() to generate    model indexes that other components can use to refer to items in your model.    \sa createIndex()*//*!    \fn bool QAbstractItemModel::insertColumn(int column, const QModelIndex &parent)    Inserts a single column before the given \a column in the child items of    the \a parent specified. Returns true if the column is inserted; otherwise    returns false.    \sa insertColumns() insertRow() removeColumn()*//*!    \fn bool QAbstractItemModel::insertRow(int row, const QModelIndex &parent)    Inserts a single row before the given \a row in the child items of the    \a parent specified. Returns true if the row is inserted; otherwise    returns false.    \sa insertRows() insertColumn() removeRow()*//*!    \fn QModelIndex QAbstractItemModel::parent(const QModelIndex &index) const = 0    Returns the parent of the model item with the given \a index, or QModelIndex()    if it has no parent.    A common convention used in models that expose tree data structures is that    only items in the first column have children. When reimplementing this function    in a subclass that provides a tree model, you should return a model index    corresponding to an item in the first column by calling createIndex() with a    value of 0 for the column number.    \sa createIndex()*//*!    \fn bool QAbstractItemModel::removeColumn(int column, const QModelIndex &parent)    Removes the given \a column from the child items of the \a parent specified.    Returns true if the column is removed; otherwise returns false.    \sa removeColumns(), removeRow(), insertColumn()*//*!    \fn bool QAbstractItemModel::removeRow(int row, const QModelIndex &parent)    Removes the given \a row from the child items of the \a parent specified.    Returns true if the row is removed; otherwise returns false.    \sa removeRows(), removeColumn(), insertRow()*//*!    \fn void QAbstractItemModel::headerDataChanged(Qt::Orientation orientation, int first, int last)    This signal is emitted whenever a header is changed. The \a orientation    indicates whether the horizontal or vertical header has changed. The    sections in the header from the \a first to the \a last need to be updated.    Note that this signal must be emitted explicitly when    reimplementing the setHeaderData() function.    If you are changing the number of columns or rows you don't need to emit this signal,    but use the begin/end functions.    \sa headerData(), setHeaderData(), dataChanged()*//*!    \fn void QAbstractItemModel::layoutAboutToBeChanged()    \since 4.2    This signal is emitted just before the layout of a model is changed.    Components connected to this signal use it to adapt to changes    in the model's layout.    Subclasses should update any persistent model indexes after emitting    layoutAboutToBeChanged().    \sa layoutChanged(), changePersistentIndex()*//*!    \fn void QAbstractItemModel::layoutChanged()    This signal is emitted whenever the layout of items exposed by the model    has changed; for example, when the model has been sorted. When this signal is    received by a view, it should update the layout of items to reflect this    change.    When subclassing QAbstractItemModel or QAbstractProxyModel, ensure that    you emit layoutAboutToBeChanged() before changing the order of items or    altering the structure of the data you expose to views, and emit    layoutChanged() after changing the layout.    Subclasses should update any persistent model indexes before    emitting layoutChanged().    \sa layoutAboutToBeChanged(), dataChanged(), headerDataChanged(), reset(), changePersistentIndex()*//*!    Constructs an abstract item model with the given \a parent.*/QAbstractItemModel::QAbstractItemModel(QObject *parent)    : QObject(*new QAbstractItemModelPrivate, parent){}/*!  \internal*/QAbstractItemModel::QAbstractItemModel(QAbstractItemModelPrivate &dd, QObject *parent)    : QObject(dd, parent){}/*!    Destroys the abstract item model.*/QAbstractItemModel::~QAbstractItemModel(){    d_func()->invalidatePersistentIndexes();}/*!    \fn QModelIndex QAbstractItemModel::sibling(int row, int column, const QModelIndex &index) const    Returns the sibling at \a row and \a column for the item at \a index, or    an invalid QModelIndex if there is no sibling at that location.    sibling() is just a convenience function that finds the item's parent, and    uses it to retrieve the index of the child item in the specified \a row    and \a column.    \sa index(), QModelIndex::row(), QModelIndex::column()*//*!    \fn int QAbstractItemModel::rowCount(const QModelIndex &parent) const    Returns the number of rows under the given \a parent.    \sa columnCount()*//*!    \fn int QAbstractItemModel::columnCount(const QModelIndex &parent) const    Returns the number of columns for the children of the given \a parent.    In most subclasses, the number of columns is independent of the    \a parent. For example:    \quotefromfile itemviews/simpledommodel/dommodel.cpp    \skipto ::columnCount    \printuntil /^\}$/    \sa rowCount()*//*!    \fn void QAbstractItemModel::dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)    This signal is emitted whenever the data in an existing item    changes. The affected items are those between \a topLeft and \a    bottomRight inclusive (of the same parent).    Note that this signal must be emitted explicitly when    reimplementing the setData() function.    \sa headerDataChanged(), setData(), layoutChanged()*//*!    \fn void QAbstractItemModel::rowsInserted(const QModelIndex &parent, int start, int end)    This signal is emitted after rows have been inserted into the    model. The new items are those between \a start and \a end    inclusive, under the given \a parent item.    \bold{Note:} Components connected to this signal use it to adapt to changes    in the model's dimensions. It can only be emitted by the QAbstractItemModel    implementation, and cannot be explicitly emitted in subclass code.    \sa insertRows(), beginInsertRows()*//*!    \fn void QAbstractItemModel::rowsAboutToBeInserted(const QModelIndex &parent, int start, int end)    This signal is emitted just before rows are inserted into the    model. The new items will be positioned between \a start and \a end    inclusive, under the given \a parent item.    \bold{Note:} Components connected to this signal use it to adapt to changes    in the model's dimensions. It can only be emitted by the QAbstractItemModel    implementation, and cannot be explicitly emitted in subclass code.    \sa insertRows(), beginInsertRows()*//*!    \fn void QAbstractItemModel::rowsRemoved(const QModelIndex &parent, int start, int end)    This signal is emitted after rows have been removed from the

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色噜噜狠狠成人网p站| 国v精品久久久网| 国产精品久久久久久妇女6080| 日韩欧美专区在线| 国产精品传媒视频| 国产精品久久综合| 国产精品色婷婷| 日韩毛片一二三区| 一区二区三区蜜桃网| 香蕉成人啪国产精品视频综合网| 亚洲自拍偷拍av| 日本aⅴ亚洲精品中文乱码| 麻豆精品在线播放| 国产精品1区2区3区在线观看| 国产精品原创巨作av| 成人a免费在线看| 欧洲一区在线观看| 日韩欧美国产一区二区三区| 久久久久久亚洲综合影院红桃| 国产日韩成人精品| 一区二区三区免费看视频| 同产精品九九九| 国产成人精品www牛牛影视| 不卡大黄网站免费看| 欧美日韩精品欧美日韩精品一综合| 欧美性大战久久久久久久蜜臀| 日韩欧美亚洲一区二区| 亚洲国产高清不卡| 亚洲大尺度视频在线观看| 久久精品国产精品亚洲红杏| 成人动漫精品一区二区| 欧美性一级生活| 欧美激情一区二区在线| 亚洲一区二区中文在线| 国产剧情一区二区| 欧美三级乱人伦电影| 国产欧美一二三区| 天堂成人免费av电影一区| 国产成a人亚洲| 9191精品国产综合久久久久久| 国产女人aaa级久久久级| 五月婷婷久久丁香| 成人午夜激情在线| 日韩视频一区二区三区在线播放 | 麻豆精品久久久| 一道本成人在线| 久久精品夜夜夜夜久久| 天天做天天摸天天爽国产一区| 成人黄色小视频在线观看| 日韩欧美激情在线| 亚洲第四色夜色| 不卡大黄网站免费看| 久久一区二区三区四区| 亚洲一级电影视频| 99久久99久久久精品齐齐| 精品国产露脸精彩对白| 日韩国产精品久久| 在线观看一区日韩| 亚洲色图欧洲色图婷婷| 国产成人精品1024| 精品久久久久av影院| 日韩电影在线观看电影| 欧美日本国产视频| 亚洲香肠在线观看| 欧美日韩小视频| 亚洲一区二区在线免费观看视频 | 欧美性大战xxxxx久久久| 亚洲欧美中日韩| youjizz国产精品| 国产亚洲欧美色| 国产成人av电影在线| 国产亚洲欧洲997久久综合 | 国产欧美日产一区| 激情小说欧美图片| 欧美sm美女调教| 韩国午夜理伦三级不卡影院| 精品国产乱码久久久久久图片| 欧美aaaaaa午夜精品| 日韩欧美在线观看一区二区三区| 日本午夜精品视频在线观看| 欧美一级理论性理论a| 日韩成人精品在线| 日韩欧美高清在线| 国产在线精品一区二区三区不卡| 欧美电影免费观看高清完整版在线 | 五月天亚洲精品| 欧美精品自拍偷拍| 久久精品国产秦先生| 久久嫩草精品久久久久| 不卡大黄网站免费看| 亚洲黄色小说网站| 日韩欧美国产1| 成人av网站大全| 一区二区三区四区在线| 在线电影国产精品| 国精产品一区一区三区mba桃花| 久久网站最新地址| 91丝袜美腿高跟国产极品老师| 亚洲综合男人的天堂| 欧美一区二区三区的| 福利视频网站一区二区三区| 亚洲免费av在线| 91精品国产综合久久香蕉麻豆 | 色噜噜夜夜夜综合网| 亚洲高清免费在线| 欧美精品一区二区三区在线| aa级大片欧美| 裸体歌舞表演一区二区| 国产精品色哟哟| 日韩欧美亚洲另类制服综合在线| 国产成人av电影在线| 五月天欧美精品| 亚洲色欲色欲www在线观看| 欧美精品粉嫩高潮一区二区| 国产不卡视频在线播放| 视频一区视频二区中文| 国产三区在线成人av| 欧美日韩不卡一区二区| 岛国av在线一区| 免费成人你懂的| 亚洲综合久久久久| 国产人伦精品一区二区| 91精品国产入口在线| 91美女片黄在线观看| 国产在线不卡一区| 石原莉奈在线亚洲二区| 亚洲欧美在线视频观看| 久久久久久久久岛国免费| 欧美久久久久中文字幕| 色94色欧美sute亚洲13| 高清不卡在线观看| 黄网站免费久久| 日韩黄色免费网站| 亚洲欧美一区二区三区久本道91| 久久免费午夜影院| 欧美刺激午夜性久久久久久久| 欧美性欧美巨大黑白大战| 成人毛片在线观看| 高清久久久久久| 国产一区二区三区av电影| 日韩av一区二区三区| 亚洲国产日日夜夜| 一区二区三区美女| 亚洲激情自拍偷拍| 亚洲欧洲精品一区二区精品久久久 | 亚洲va欧美va国产va天堂影院| 国产精品国产a| 国产精品美女一区二区在线观看| 精品国产一区二区在线观看| 91精品婷婷国产综合久久性色| 欧美精品在线一区二区| 欧美另类变人与禽xxxxx| 欧美午夜一区二区| 欧美日韩国产一二三| 欧美军同video69gay| 91精品国产色综合久久久蜜香臀| 在线不卡a资源高清| 3d成人h动漫网站入口| 日韩欧美中文字幕制服| 久久综合av免费| 久久免费的精品国产v∧| 欧美tickling网站挠脚心| 久久精品视频一区二区| 国产精品免费网站在线观看| 国产精品久久久久久久久免费丝袜 | 色偷偷成人一区二区三区91| 欧美在线视频你懂得| 欧美一卡二卡三卡四卡| 2024国产精品视频| 国产精品日韩精品欧美在线| 中文字幕视频一区二区三区久| 亚洲免费资源在线播放| 午夜精品免费在线观看| 老司机午夜精品| 国产91色综合久久免费分享| 色综合久久久久久久久| 91精品国产综合久久蜜臀| 国产三级精品在线| 亚洲最快最全在线视频| 久久国产麻豆精品| 99热99精品| 日韩欧美亚洲国产另类| 国产精品美女视频| 亚洲国产成人91porn| 国产主播一区二区三区| 色婷婷综合久色| 久久久精品tv| 午夜精品久久久久久久蜜桃app| 男人的j进女人的j一区| 99久久综合精品| 欧美xfplay| 亚洲午夜久久久久久久久电影院 | 国产精品久久久久久久第一福利| 精品在线一区二区三区| 色噜噜久久综合| 国产三级欧美三级| 免费成人av资源网| 欧美亚洲国产bt| 中文字幕av不卡| 捆绑调教美女网站视频一区|