<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # QPersistentModelIndex Class Reference ## [[QtCore](index.htm) module] 該QPersistentModelIndex類用于定位數據的數據模型。[More...](#details) ### Methods * `__init__ (self)` * `__init__ (self, QModelIndex?index)` * `__init__ (self, QPersistentModelIndex?other)` * `QModelIndex child (self, int?row, int?column)` * `int column (self)` * `QVariant data (self, int?role?=?Qt.DisplayRole)` * `Qt.ItemFlags flags (self)` * `bool isValid (self)` * `QAbstractItemModel model (self)` * `QModelIndex parent (self)` * `int row (self)` * `QModelIndex sibling (self, int?row, int?column)` ### Special Methods * `bool __eq__ (self, QPersistentModelIndex?other)` * `bool __eq__ (self, QModelIndex?other)` * `bool __ge__ (self, QPersistentModelIndex?other)` * `int __hash__ (self)` * `bool __lt__ (self, QPersistentModelIndex?other)` * `bool __ne__ (self, QPersistentModelIndex?other)` * `bool __ne__ (self, QModelIndex?other)` * * * ## Detailed Description 該QPersistentModelIndex類用于定位數據的數據模型。 一個QPersistentModelIndex是一個可以由應用程序來存儲的,后來用于訪問信息模型中的一個模型索引。不同的是[QModelIndex](qmodelindex.html)類,它是安全的存儲QPersistentModelIndex因為該模型將確保引用的項目將繼續是有效的,只要它們能夠由模型來訪問。 這是很好的做法,檢查持久化模型指標均在使用它們之前有效。 * * * ## Method Documentation ``` QPersistentModelIndex.__init__ (self) ``` 創建一個新的[QPersistentModelIndex](qpersistentmodelindex.html)這是該模型的一個拷貝_index_。 ``` QPersistentModelIndex.__init__ (self, QModelIndex?index) ``` ``` QPersistentModelIndex.__init__ (self, QPersistentModelIndex?other) ``` 創建一個新的[QPersistentModelIndex](qpersistentmodelindex.html)這是的??一個副本_other_持久化模型索引。 ``` QModelIndex QPersistentModelIndex.child (self, int?row, int?column) ``` [ 返回該模型索引被存儲在給定的子_row_和_column_。 ](qmodelindex.html) [**See also**](qmodelindex.html) [parent](qpersistentmodelindex.html#parent)()和[sibling](qpersistentmodelindex.html#sibling)( ) 。 ``` int QPersistentModelIndex.column (self) ``` 返回該持久化模型指標指的是列。 ``` QVariant QPersistentModelIndex.data (self, int?role?=?Qt.DisplayRole) ``` 返回數據為給定的_role_該項目由索引引用。 **See also** [Qt.ItemDataRole](qt.html#ItemDataRole-enum)和[QAbstractItemModel.setData](qabstractitemmodel.html#setData)( ) 。 ``` Qt.ItemFlags QPersistentModelIndex.flags (self) ``` [ 返回該標志由索引所指的項目。 這個函數中引入了Qt 4.2中。 ``` bool QPersistentModelIndex.isValid (self) ``` 返回True如果這個持久化模型的索引是有效的,否則返回False 。 一個有效的指標屬于一個模型,并具有非負的行數和列數。 ](index.htm) [**See also**](index.htm) [model](qpersistentmodelindex.html#model)( )[row](qpersistentmodelindex.html#row)()和[column](qpersistentmodelindex.html#column)( ) 。 ``` QAbstractItemModel QPersistentModelIndex.model (self) ``` [ 返回該指數屬于典型的。 ](qabstractitemmodel.html) ``` QModelIndex QPersistentModelIndex.parent (self) ``` [](qmodelindex.html) [返回父](qmodelindex.html)[QModelIndex](qmodelindex.html)這種持續的指數,或無效[QModelIndex](qmodelindex.html)如果它沒有父。 **See also** [child](qpersistentmodelindex.html#child)( )[sibling](qpersistentmodelindex.html#sibling)()和[model](qpersistentmodelindex.html#model)( ) 。 ``` int QPersistentModelIndex.row (self) ``` 返回此持續性模型索引是指該行。 ``` QModelIndex QPersistentModelIndex.sibling (self, int?row, int?column) ``` [](qmodelindex.html) [返回在同級_row_和_column_或無效的](qmodelindex.html)[QModelIndex](qmodelindex.html)如果沒有兄弟在這個位置。 **See also** [parent](qpersistentmodelindex.html#parent)()和[child](qpersistentmodelindex.html#child)( ) 。 ``` bool QPersistentModelIndex.__eq__ (self, QPersistentModelIndex?other) ``` ``` bool QPersistentModelIndex.__eq__ (self, QModelIndex?other) ``` ``` bool QPersistentModelIndex.__ge__ (self, QPersistentModelIndex?other) ``` ``` int QPersistentModelIndex.__hash__ (self) ``` ``` bool QPersistentModelIndex.__lt__ (self, QPersistentModelIndex?other) ``` ``` bool QPersistentModelIndex.__ne__ (self, QPersistentModelIndex?other) ``` ``` bool QPersistentModelIndex.__ne__ (self, QModelIndex?other) ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看