<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # QItemSelectionRange Class Reference ## [[QtGui](index.htm) module] 該QItemSelectionRange類管理有關的一系列模型中的選定項目的信息。[More...](#details) ### Methods * `__init__ (self)` * `__init__ (self, QItemSelectionRange?other)` * `__init__ (self, QModelIndex?atopLeft, QModelIndex?abottomRight)` * `__init__ (self, QModelIndex?index)` * `int bottom (self)` * `QModelIndex bottomRight (self)` * `bool contains (self, QModelIndex?index)` * `bool contains (self, int?row, int?column, QModelIndex?parentIndex)` * `int height (self)` * `list-of-QModelIndex indexes (self)` * `QItemSelectionRange intersect (self, QItemSelectionRange?other)` * `QItemSelectionRange intersected (self, QItemSelectionRange?other)` * `bool intersects (self, QItemSelectionRange?other)` * `bool isEmpty (self)` * `bool isValid (self)` * `int left (self)` * `QAbstractItemModel model (self)` * `QModelIndex parent (self)` * `int right (self)` * `int top (self)` * `QModelIndex topLeft (self)` * `int width (self)` ### Special Methods * `bool __eq__ (self, QItemSelectionRange?other)` * `bool __ge__ (self, QItemSelectionRange?other)` * `int __hash__ (self)` * `bool __lt__ (self, QItemSelectionRange?other)` * `bool __ne__ (self, QItemSelectionRange?other)` * * * ## Detailed Description 該QItemSelectionRange類管理有關的一系列模型中的選定項目的信息。 一個QItemSelectionRange包含了一系列模型中選定項目的信息。件的范圍是模型件的鄰接陣列,延伸至包括多個相鄰的行和列中具有共同的父項,這可以看作是細胞的表中的一個兩維塊。選擇范圍有[top](qitemselectionrange.html#top)( )[left](qitemselectionrange.html#left)( )一[bottom](qitemselectionrange.html#bottom)( )[right](qitemselectionrange.html#right)()和一個[parent](qitemselectionrange.html#parent)( ) 。 該QItemSelectionRange類是一個[Model/View Classes](index.htm)并且是Qt的一部分[model/view framework](index.htm)。 包含在選擇的范圍中的模型項可使用所獲得的[indexes](qitemselectionrange.html#indexes)()函數。使用[QItemSelectionModel.selectedIndexes](qitemselectionmodel.html#selectedIndexes)()來獲取所有選定的項目的視圖列表。 您可以決定是否給定的模型項目通過使用位于一個特定的范圍內,[contains](qitemselectionrange.html#contains)()函數。范圍也可以使用重載運算符的平等和不平等相比,和[intersects](qitemselectionrange.html#intersects)( )函數允許您確定兩個范圍是否重疊。 * * * ## Method Documentation ``` QItemSelectionRange.__init__ (self) ``` 構造一個空的選擇范圍。 ``` QItemSelectionRange.__init__ (self, QItemSelectionRange?other) ``` 拷貝構造函數。構造一個新的選擇范圍與內容相同_other_范圍內給出。 ``` QItemSelectionRange.__init__ (self, QModelIndex?atopLeft, QModelIndex?abottomRight) ``` 構造一個包含只能由指定的索引一個新的選擇范圍_topLeft_和索引_bottomRight_。 ``` QItemSelectionRange.__init__ (self, QModelIndex?index) ``` 構造一個只包含由模型索引指定的模型項新的選擇范圍_index_。 ``` int QItemSelectionRange.bottom (self) ``` 返回對應于最下面選定行中的選擇范圍之列索引。 ``` QModelIndex QItemSelectionRange.bottomRight (self) ``` [ 返回指數位于的選擇范圍右下角的項目。 ](qmodelindex.html) [**See also**](qmodelindex.html) [bottom](qitemselectionrange.html#bottom)( )[right](qitemselectionrange.html#right)()和[topLeft](qitemselectionrange.html#topLeft)( ) 。 ``` bool QItemSelectionRange.contains (self, QModelIndex?index) ``` 返回True如果指定的模型項目_index_位于所選項目的范圍之內,否則返回False 。 ``` bool QItemSelectionRange.contains (self, int?row, int?column, QModelIndex?parentIndex) ``` 這是一個重載函數。 如果指定的(模型項目,則返回True_row_,_column_)中,用_parentIndex_父項目位于所選項目的范圍之內,否則返回False 。 ``` int QItemSelectionRange.height (self) ``` 返回值的選擇范圍中選擇的行數。 ``` list-of-QModelIndex QItemSelectionRange.indexes (self) ``` 返回存儲在選擇模型索引項的列表。 ``` QItemSelectionRange QItemSelectionRange.intersect (self, QItemSelectionRange?other) ``` [](qitemselectionrange.html) ``` QItemSelectionRange QItemSelectionRange.intersected (self, QItemSelectionRange?other) ``` [ 返回一個包含僅被發現在選擇范圍的項目和一個新的選擇范圍_other_選擇范圍。 這個函數中引入了Qt 4.2中。 ``` bool QItemSelectionRange.intersects (self, QItemSelectionRange?other) ``` 如果這個選擇范圍相交,則返回True (重疊含)_other_給定范圍內,否則返回False 。 ``` bool QItemSelectionRange.isEmpty (self) ``` 如果選擇范圍不包含可選的項目,則返回True 此功能被引入Qt的4.7 。 ``` bool QItemSelectionRange.isValid (self) ``` 返回True如果選擇范圍是有效的,否則返回False 。 ``` int QItemSelectionRange.left (self) ``` 返回對應于選擇范圍最左邊的選定列的列索引。 ](qitemselectionrange.html) ``` QAbstractItemModel QItemSelectionRange.model (self) ``` [ 返回在選擇范圍中的項目屬于該模型。 ](qabstractitemmodel.html) ``` QModelIndex QItemSelectionRange.parent (self) ``` [ 返回在選擇范圍內的項目父模型項目索引。 ``` int QItemSelectionRange.right (self) ``` 返回對應于選擇范圍最右邊的選定列的列索引。 ``` int QItemSelectionRange.top (self) ``` 返回對應于最上方的選定行中的選擇范圍之列索引。 ](qmodelindex.html) ``` QModelIndex QItemSelectionRange.topLeft (self) ``` [ 返回的索引位于選擇范圍的左上角的項目。 ](qmodelindex.html) [**See also**](qmodelindex.html) [top](qitemselectionrange.html#top)( )[left](qitemselectionrange.html#left)()和[bottomRight](qitemselectionrange.html#bottomRight)( ) 。 ``` int QItemSelectionRange.width (self) ``` 返回在選擇范圍內選擇的列數。 ``` bool QItemSelectionRange.__eq__ (self, QItemSelectionRange?other) ``` ``` bool QItemSelectionRange.__ge__ (self, QItemSelectionRange?other) ``` ``` int QItemSelectionRange.__hash__ (self) ``` ``` bool QItemSelectionRange.__lt__ (self, QItemSelectionRange?other) ``` ``` bool QItemSelectionRange.__ne__ (self, QItemSelectionRange?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>

                              哎呀哎呀视频在线观看