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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # QItemSelection Class Reference ## [[QtGui](index.htm) module] 該QItemSelection類管理有關模型中的選定項目的信息。[More...](#details) ### Methods * `__init__ (self)` * `__init__ (self, QModelIndex?topLeft, QModelIndex?bottomRight)` * `__init__ (self, QItemSelection)` * `append (self, QItemSelectionRange?range)` * `clear (self)` * `bool contains (self, QModelIndex?index)` * `int count (self, QItemSelectionRange?range)` * `int count (self)` * `QItemSelectionRange first (self)` * `list-of-QModelIndex indexes (self)` * `int indexOf (self, QItemSelectionRange?value, int?from?=?0)` * `insert (self, int?i, QItemSelectionRange?range)` * `bool isEmpty (self)` * `QItemSelectionRange last (self)` * `int lastIndexOf (self, QItemSelectionRange?value, int?from?=?-1)` * `merge (self, QItemSelection?other, QItemSelectionModel.SelectionFlags?command)` * `move (self, int?from, int?to)` * `prepend (self, QItemSelectionRange?range)` * `int removeAll (self, QItemSelectionRange?range)` * `removeAt (self, int?i)` * `replace (self, int?i, QItemSelectionRange?range)` * `select (self, QModelIndex?topLeft, QModelIndex?bottomRight)` * `swap (self, int?i, int?j)` * `QItemSelectionRange takeAt (self, int?i)` * `QItemSelectionRange takeFirst (self)` * `QItemSelectionRange takeLast (self)` ### Static Methods * `split (QItemSelectionRange?range, QItemSelectionRange?other, QItemSelection?result)` ### Special Methods * `int __contains__ (self, QModelIndex?index)` * `__delitem__ (self, int?i)` * `__delitem__ (self, slice?slice)` * `bool __eq__ (self, QItemSelection?other)` * `QItemSelectionRange __getitem__ (self, int?i)` * `QItemSelection __getitem__ (self, slice?slice)` * `QItemSelection __iadd__ (self, QItemSelection?other)` * `QItemSelection __iadd__ (self, QItemSelectionRange?value)` * `__len__ (self)` * `bool __ne__ (self, QItemSelection?other)` * `__setitem__ (self, int?i, QItemSelectionRange?range)` * `__setitem__ (self, slice?slice, QItemSelection?list)` * * * ## Detailed Description 該QItemSelection類管理有關模型中的選定項目的信息。 甲QItemSelection描述在已經由用戶選擇的模式中的項目。一個QItemSelection基本上是選擇范圍列表,請參閱[QItemSelectionRange](qitemselectionrange.html)。它提供了用于創建和操作選擇,并從模型中選擇一個范圍內的項目。 該QItemSelection類是一個[Model/View Classes](index.htm)并且是Qt的一部分[model/view framework](index.htm)。 項目選擇可以構造并初始化為包含范圍從現有的模型項目。下面的示例構造一個包含從給定的各類物品的選擇`model`,開始在`topLeft`,和結束的`bottomRight`。 ``` QItemSelection *selection = new QItemSelection(topLeft, bottomRight); ``` 一個空的項目選擇可以構造,后來填充的要求。因此,如果模型要當我們構建了項目選擇為不可用,我們可以重寫上面的代碼中的方法如下: ``` QItemSelection *selection = new QItemSelection(); ... selection->select(topLeft, bottomRight); ``` QItemSelection節省內存,并避免不必要的工作,通過與選擇范圍工作,而不是記錄的模型項目的索引為每個項目中選擇。一般來說,這個類的實例將包含非重疊選擇范圍的列表。 使用[merge](qitemselection.html#merge)( )合并一個項目的選擇到另一個未做重疊的范圍。使用[split](qitemselection.html#split)( )的基礎上另外一個選擇范圍分割一個選擇范圍為更小的范圍。 * * * ## Method Documentation ``` QItemSelection.__init__ (self) ``` 構造一個空的選擇。 ``` QItemSelection.__init__ (self, QModelIndex?topLeft, QModelIndex?bottomRight) ``` 構造一個項目選擇,從左上角模型項目延伸,由指定的_topLeft_指數,在右下角項目,由指定的_bottomRight_。 ``` QItemSelection.__init__ (self, QItemSelection) ``` ``` QItemSelection.append (self, QItemSelectionRange?range) ``` ``` QItemSelection.clear (self) ``` ``` bool QItemSelection.contains (self, QModelIndex?index) ``` 如果選擇包含給定的,則返回True_index_否則返回False 。 ``` int QItemSelection.count (self, QItemSelectionRange?range) ``` ``` int QItemSelection.count (self) ``` ``` QItemSelectionRange QItemSelection.first (self) ``` [ ``` list-of-QModelIndex QItemSelection.indexes (self) ``` 返回對應于所選擇的項的模型索引的列表。 ``` int QItemSelection.indexOf (self, QItemSelectionRange?value, int?from?=?0) ``` ``` QItemSelection.insert (self, int?i, QItemSelectionRange?range) ``` ``` bool QItemSelection.isEmpty (self) ``` ](qitemselectionrange.html) ``` QItemSelectionRange QItemSelection.last (self) ``` [ ``` int QItemSelection.lastIndexOf (self, QItemSelectionRange?value, int?from?=?-1) ``` ``` QItemSelection.merge (self, QItemSelection?other, QItemSelectionModel.SelectionFlags?command) ``` ](qitemselectionrange.html) [合并的_other_選擇與此](qitemselectionrange.html)[QItemSelection](qitemselection.html)使用_command_給出。這種方法保證了沒有范圍是重疊的。 請注意,只有[QItemSelectionModel.Select](qitemselectionmodel.html#SelectionFlag-enum),[QItemSelectionModel.Deselect](qitemselectionmodel.html#SelectionFlag-enum)和[QItemSelectionModel.Toggle](qitemselectionmodel.html#SelectionFlag-enum)被支持。 **See also** [split](qitemselection.html#split)( ) 。 ``` QItemSelection.move (self, int?from, int?to) ``` ``` QItemSelection.prepend (self, QItemSelectionRange?range) ``` ``` int QItemSelection.removeAll (self, QItemSelectionRange?range) ``` ``` QItemSelection.removeAt (self, int?i) ``` ``` QItemSelection.replace (self, int?i, QItemSelectionRange?range) ``` ``` QItemSelection.select (self, QModelIndex?topLeft, QModelIndex?bottomRight) ``` 添加該范圍中的項目,從左上角的模型項上延伸,由指定的_topLeft_指數,在右下角項目,由指定的_bottomRight_到列表中。 **Note:** _topLeft_和_bottomRight_必須具有相同的父代。 ``` QItemSelection.split (QItemSelectionRange?range, QItemSelectionRange?other, QItemSelection?result) ``` 拆分選擇_range_使用選擇_other_范圍。在刪除所有項目_other_從_range_并將該結果_result_。這可以用的語義進行比較_subtract_的一組操作。 **See also** [merge](qitemselection.html#merge)( ) 。 ``` QItemSelection.swap (self, int?i, int?j) ``` ``` QItemSelectionRange QItemSelection.takeAt (self, int?i) ``` [](qitemselectionrange.html) ``` QItemSelectionRange QItemSelection.takeFirst (self) ``` [](qitemselectionrange.html) ``` QItemSelectionRange QItemSelection.takeLast (self) ``` [ ``` int QItemSelection.__contains__ (self, QModelIndex?index) ``` ``` QItemSelection.__delitem__ (self, int?i) ``` ``` QItemSelection.__delitem__ (self, slice?slice) ``` ``` bool QItemSelection.__eq__ (self, QItemSelection?other) ``` ](qitemselectionrange.html) ``` QItemSelectionRange QItemSelection.__getitem__ (self, int?i) ``` [](qitemselectionrange.html) ``` QItemSelection QItemSelection.__getitem__ (self, slice?slice) ``` [](qitemselection.html) ``` QItemSelection QItemSelection.__iadd__ (self, QItemSelection?other) ``` [](qitemselection.html) ``` QItemSelection QItemSelection.__iadd__ (self, QItemSelectionRange?value) ``` [ ``` QItemSelection.__len__ (self) ``` ``` bool QItemSelection.__ne__ (self, QItemSelection?other) ``` ``` QItemSelection.__setitem__ (self, int?i, QItemSelectionRange?range) ``` ``` QItemSelection.__setitem__ (self, slice?slice, QItemSelection?list) ``` ](qitemselection.html)
                  <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>

                              哎呀哎呀视频在线观看