<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # QIdentityProxyModel Class Reference ## [[QtGui](index.htm) module] 該QIdentityProxyModel類以代理其源模型未修改[More...](#details) 繼承[QAbstractProxyModel](qabstractproxymodel.html)。 ### Methods * `__init__ (self, QObject?parent?=?None)` * `int columnCount (self, QModelIndex?parent?=?QModelIndex())` * `bool dropMimeData (self, QMimeData?data, Qt.DropAction?action, int?row, int?column, QModelIndex?parent)` * `QModelIndex index (self, int?row, int?column, QModelIndex?parent?=?QModelIndex())` * `bool insertColumns (self, int?column, int?count, QModelIndex?parent?=?QModelIndex())` * `bool insertRows (self, int?row, int?count, QModelIndex?parent?=?QModelIndex())` * `QModelIndex mapFromSource (self, QModelIndex?sourceIndex)` * `QItemSelection mapSelectionFromSource (self, QItemSelection?selection)` * `QItemSelection mapSelectionToSource (self, QItemSelection?selection)` * `QModelIndex mapToSource (self, QModelIndex?proxyIndex)` * `list-of-QModelIndex match (self, QModelIndex?start, int?role, QVariant?value, int?hits?=?1, Qt.MatchFlags?flags?=?Qt.MatchStartsWith|Qt.MatchWrap)` * `QModelIndex parent (self, QModelIndex?child)` * `bool removeColumns (self, int?column, int?count, QModelIndex?parent?=?QModelIndex())` * `bool removeRows (self, int?row, int?count, QModelIndex?parent?=?QModelIndex())` * `int rowCount (self, QModelIndex?parent?=?QModelIndex())` * `setSourceModel (self, QAbstractItemModel?sourceModel)` * * * ## Detailed Description 該QIdentityProxyModel類以代理其源模型未修改 QIdentityProxyModel可以用來轉發源模型的結構完全相同,沒有排序,過濾或其它變換。這類似于在概念上單位矩陣其中AI = A。 因為它確實沒有任何排序或篩選,這個類是代理模式的變換最適合的[data](qabstractproxymodel.html#data)源模型的( ) 。例如,代理模型可以被創建來定義所使用的字體,或背景色,或工具提示等,這消除了需要執行的處理中創建的模型的結構相同的類別中的所有數據,并且也可以是用于創建可重用的組件。 這也提供了一種方法來改變在其中一個源模型是由第三者不能修改的供給的情況下的數據。 ``` class DateFormatProxyModel : public QIdentityProxyModel { // ... void setDateFormatString(const [QString](qstring.html) &formatString) { m_formatString = formatString; } [QVariant](qvariant.html) data(const [QModelIndex](qmodelindex.html) &index, int role) { if (role != [Qt](qt.html).DisplayRole) return QIdentityProxyModel.data(index, role); const [QDateTime](qdatetime.html) dateTime = sourceModel()->data(SourceClass.DateRole).toDateTime(); return dateTime.toString(m_formatString); } private: [QString](qstring.html) m_formatString; }; ``` * * * ## Method Documentation ``` QIdentityProxyModel.__init__ (self, QObject?parent?=?None) ``` 該_parent_的說法,如果不是沒有,原因_self_通過Qt的,而不是PyQt的擁有。 構造一個身份模型與給定_parent_。 ``` int QIdentityProxyModel.columnCount (self, QModelIndex?parent?=?QModelIndex()) ``` 從重新實現[QAbstractItemModel.columnCount](qabstractitemmodel.html#columnCount)( ) 。 ``` bool QIdentityProxyModel.dropMimeData (self, QMimeData?data, Qt.DropAction?action, int?row, int?column, QModelIndex?parent) ``` 從重新實現[QAbstractItemModel.dropMimeData](qabstractitemmodel.html#dropMimeData)( ) 。 ``` QModelIndex QIdentityProxyModel.index (self, int?row, int?column, QModelIndex?parent?=?QModelIndex()) ``` [](qmodelindex.html) [從重新實現](qmodelindex.html)[QAbstractItemModel.index](qabstractitemmodel.html#index)( ) 。 ``` bool QIdentityProxyModel.insertColumns (self, int?column, int?count, QModelIndex?parent?=?QModelIndex()) ``` 從重新實現[QAbstractItemModel.insertColumns](qabstractitemmodel.html#insertColumns)( ) 。 ``` bool QIdentityProxyModel.insertRows (self, int?row, int?count, QModelIndex?parent?=?QModelIndex()) ``` 從重新實現[QAbstractItemModel.insertRows](qabstractitemmodel.html#insertRows)( ) 。 ``` QModelIndex QIdentityProxyModel.mapFromSource (self, QModelIndex?sourceIndex) ``` [](qmodelindex.html) [從重新實現](qmodelindex.html)[QAbstractProxyModel.mapFromSource](qabstractproxymodel.html#mapFromSource)( ) 。 ``` QItemSelection QIdentityProxyModel.mapSelectionFromSource (self, QItemSelection?selection) ``` [](qitemselection.html) [從重新實現](qitemselection.html)[QAbstractProxyModel.mapSelectionFromSource](qabstractproxymodel.html#mapSelectionFromSource)( ) 。 ``` QItemSelection QIdentityProxyModel.mapSelectionToSource (self, QItemSelection?selection) ``` [](qitemselection.html) [從重新實現](qitemselection.html)[QAbstractProxyModel.mapSelectionToSource](qabstractproxymodel.html#mapSelectionToSource)( ) 。 ``` QModelIndex QIdentityProxyModel.mapToSource (self, QModelIndex?proxyIndex) ``` [](qmodelindex.html) [從重新實現](qmodelindex.html)[QAbstractProxyModel.mapToSource](qabstractproxymodel.html#mapToSource)( ) 。 ``` list-of-QModelIndex QIdentityProxyModel.match (self, QModelIndex?start, int?role, QVariant?value, int?hits?=?1, Qt.MatchFlags?flags?=?Qt.MatchStartsWith|Qt.MatchWrap) ``` 從重新實現[QAbstractItemModel.match](qabstractitemmodel.html#match)( ) 。 ``` QModelIndex QIdentityProxyModel.parent (self, QModelIndex?child) ``` [](qmodelindex.html) [從重新實現](qmodelindex.html)[QAbstractItemModel.parent](qabstractitemmodel.html#parent)( ) 。 ``` bool QIdentityProxyModel.removeColumns (self, int?column, int?count, QModelIndex?parent?=?QModelIndex()) ``` 從重新實現[QAbstractItemModel.removeColumns](qabstractitemmodel.html#removeColumns)( ) 。 ``` bool QIdentityProxyModel.removeRows (self, int?row, int?count, QModelIndex?parent?=?QModelIndex()) ``` 從重新實現[QAbstractItemModel.removeRows](qabstractitemmodel.html#removeRows)( ) 。 ``` int QIdentityProxyModel.rowCount (self, QModelIndex?parent?=?QModelIndex()) ``` 從重新實現[QAbstractItemModel.rowCount](qabstractitemmodel.html#rowCount)( ) 。 ``` QIdentityProxyModel.setSourceModel (self, QAbstractItemModel?sourceModel) ``` 從重新實現[QAbstractProxyModel.setSourceModel](qabstractproxymodel.html#setSourceModel)( ) 。
                  <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>

                              哎呀哎呀视频在线观看