<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # QGraphicsGridLayout Class Reference ## [[QtGui](index.htm) module] 該QGraphicsGridLayout類提供了在圖形視圖管理部件網格布局。[More...](#details) 繼承[QGraphicsLayout](qgraphicslayout.html)。 ### Methods * `__init__ (self, QGraphicsLayoutItem?parent?=?None)` * `addItem (self, QGraphicsLayoutItem?item, int?row, int?column, int?rowSpan, int?columnSpan, Qt.Alignment?alignment?=?0)` * `addItem (self, QGraphicsLayoutItem?aitem, int?arow, int?acolumn, Qt.Alignment?alignment?=?0)` * `Qt.Alignment alignment (self, QGraphicsLayoutItem?item)` * `Qt.Alignment columnAlignment (self, int?column)` * `int columnCount (self)` * `float columnMaximumWidth (self, int?column)` * `float columnMinimumWidth (self, int?column)` * `float columnPreferredWidth (self, int?column)` * `float columnSpacing (self, int?column)` * `int columnStretchFactor (self, int?column)` * `int count (self)` * `float horizontalSpacing (self)` * `invalidate (self)` * `QGraphicsLayoutItem itemAt (self, int?row, int?column)` * `QGraphicsLayoutItem itemAt (self, int?index)` * `removeAt (self, int?index)` * `removeItem (self, QGraphicsLayoutItem?item)` * `Qt.Alignment rowAlignment (self, int?row)` * `int rowCount (self)` * `float rowMaximumHeight (self, int?row)` * `float rowMinimumHeight (self, int?row)` * `float rowPreferredHeight (self, int?row)` * `float rowSpacing (self, int?row)` * `int rowStretchFactor (self, int?row)` * `setAlignment (self, QGraphicsLayoutItem?item, Qt.Alignment?alignment)` * `setColumnAlignment (self, int?column, Qt.Alignment?alignment)` * `setColumnFixedWidth (self, int?column, float?width)` * `setColumnMaximumWidth (self, int?column, float?width)` * `setColumnMinimumWidth (self, int?column, float?width)` * `setColumnPreferredWidth (self, int?column, float?width)` * `setColumnSpacing (self, int?column, float?spacing)` * `setColumnStretchFactor (self, int?column, int?stretch)` * `setGeometry (self, QRectF?rect)` * `setHorizontalSpacing (self, float?spacing)` * `setRowAlignment (self, int?row, Qt.Alignment?alignment)` * `setRowFixedHeight (self, int?row, float?height)` * `setRowMaximumHeight (self, int?row, float?height)` * `setRowMinimumHeight (self, int?row, float?height)` * `setRowPreferredHeight (self, int?row, float?height)` * `setRowSpacing (self, int?row, float?spacing)` * `setRowStretchFactor (self, int?row, int?stretch)` * `setSpacing (self, float?spacing)` * `setVerticalSpacing (self, float?spacing)` * `QSizeF sizeHint (self, Qt.SizeHint?which, QSizeF?constraint?=?QSizeF())` * `float verticalSpacing (self)` * * * ## Detailed Description 該QGraphicsGridLayout類提供了在圖形視圖管理部件網格布局。 使用QGraphicsGridLayout最常用的方法是通過調用構造一個對象在堆中,沒有父母,添加控件和布局[addItem](qgraphicsgridlayout.html#addItem)() ,最后是布局呼叫分配給一個小部件[QGraphicsWidget.setLayout](qgraphicswidget.html#layout-prop)( ) 。當您添加的項目QGraphicsGridLayout自動計算網格的尺寸。 ``` [QGraphicsScene](qgraphicsscene.html) scene; [QGraphicsWidget](qgraphicswidget.html) *textEdit = scene.addWidget(new [QTextEdit](qtextedit.html)); [QGraphicsWidget](qgraphicswidget.html) *pushButton = scene.addWidget(new [QPushButton](qpushbutton.html)); QGraphicsGridLayout *layout = new QGraphicsGridLayout; layout->addItem(textEdit, 0, 0); layout->addItem(pushButton, 0, 1); [QGraphicsWidget](qgraphicswidget.html) *form = new [QGraphicsWidget](qgraphicswidget.html); form->setLayout(layout); scene.addItem(form); ``` 布局需要的物品的所有權。在某些情況下,當項目的布局也繼承自[QGraphicsItem](qgraphicsitem.html)(如[QGraphicsWidget](qgraphicswidget.html))會有因為布局項目屬于兩個層次的所有權所有權的模糊性。看到的文檔[QGraphicsLayoutItem.setOwnedByLayout](qgraphicslayoutitem.html#setOwnedByLayout)( )如何處理這個問題。你可以通過調用訪問布局每個項目[count](qgraphicsgridlayout.html#count)()和[itemAt](qgraphicsgridlayout.html#itemAt)( ) 。調用[removeAt](qgraphicsgridlayout.html#removeAt)( )會從布局中刪除某個項目,而不破壞它。 ### Size Hints and Size Policies in QGraphicsGridLayout QGraphicsGridLayout尊重每個項目的大小提示和大小政策,并在網格中的一個單元格有更多的空間比項目可以填寫,每個項目是根據該項目的布局的對齊方式排列。你可以通過調用設置每個項目的對齊方式[setAlignment](qgraphicsgridlayout.html#setAlignment)( ) ,并通過調用檢查對齊任何項目[alignment](qgraphicsgridlayout.html#alignment)( ) 。您也可以通過調用設置的對齊方式為整個行或列[setRowAlignment](qgraphicsgridlayout.html#setRowAlignment)()和[setColumnAlignment](qgraphicsgridlayout.html#setColumnAlignment)( )分別。默認情況下,項目是一致的左上角。 * * * ## Method Documentation ``` QGraphicsGridLayout.__init__ (self, QGraphicsLayoutItem?parent?=?None) ``` 該_parent_的說法,如果不是沒有,原因_self_通過Qt的,而不是PyQt的擁有。 構造一個[QGraphicsGridLayout](qgraphicsgridlayout.html)實例。_parent_被傳遞給[QGraphicsLayout](qgraphicslayout.html)的構造。 ``` QGraphicsGridLayout.addItem (self, QGraphicsLayoutItem?item, int?row, int?column, int?rowSpan, int?columnSpan, Qt.Alignment?alignment?=?0) ``` 該_item_說法有它的所有權轉移給Qt的。 添加_item_到網格上_row_和_column_。您可以指定一個_rowSpan_和_columnSpan_和可選的_alignment_。 ``` QGraphicsGridLayout.addItem (self, QGraphicsLayoutItem?aitem, int?arow, int?acolumn, Qt.Alignment?alignment?=?0) ``` 該_aitem_的說法,如果不是沒有,原因_self_通過Qt的,而不是PyQt的擁有。 添加_item_到網格上_row_和_column_。您可以指定一個可選的_alignment_為_item_。 ``` Qt.Alignment QGraphicsGridLayout.alignment (self, QGraphicsLayoutItem?item) ``` [ 返回對齊_item_。 ](index.htm) [**See also**](index.htm) [setAlignment](qgraphicsgridlayout.html#setAlignment)( ) 。 ``` Qt.Alignment QGraphicsGridLayout.columnAlignment (self, int?column) ``` [ 返回對齊_column_。 ](index.htm) [**See also**](index.htm) [setColumnAlignment](qgraphicsgridlayout.html#setColumnAlignment)( ) 。 ``` int QGraphicsGridLayout.columnCount (self) ``` 返回列的網格布局的數目。這總是比由布局項目佔據的最后一列的索引多一個(空列計數除了那些在最后) 。 ``` float QGraphicsGridLayout.columnMaximumWidth (self, int?column) ``` 返回的最大寬度_column_。 **See also** [setColumnMaximumWidth](qgraphicsgridlayout.html#setColumnMaximumWidth)( ) 。 ``` float QGraphicsGridLayout.columnMinimumWidth (self, int?column) ``` 返回的最小寬度_column_。 **See also** [setColumnMinimumWidth](qgraphicsgridlayout.html#setColumnMinimumWidth)( ) 。 ``` float QGraphicsGridLayout.columnPreferredWidth (self, int?column) ``` 返回首選寬度_column_。 **See also** [setColumnPreferredWidth](qgraphicsgridlayout.html#setColumnPreferredWidth)( ) 。 ``` float QGraphicsGridLayout.columnSpacing (self, int?column) ``` 返回列間距_column_。 **See also** [setColumnSpacing](qgraphicsgridlayout.html#setColumnSpacing)( ) 。 ``` int QGraphicsGridLayout.columnStretchFactor (self, int?column) ``` 返回的拉伸因子_column_。 **See also** [setColumnStretchFactor](qgraphicsgridlayout.html#setColumnStretchFactor)( ) 。 ``` int QGraphicsGridLayout.count (self) ``` 從重新實現[QGraphicsLayout.count](qgraphicslayout.html#count)( ) 。 返回布局的項目在此網格布局的數量。 ``` float QGraphicsGridLayout.horizontalSpacing (self) ``` 返回默認的水平間距的網格布局。 **See also** [setHorizontalSpacing](qgraphicsgridlayout.html#setHorizontalSpacing)( ) 。 ``` QGraphicsGridLayout.invalidate (self) ``` 從重新實現[QGraphicsLayout.invalidate](qgraphicslayout.html#invalidate)( ) 。 ``` QGraphicsLayoutItem QGraphicsGridLayout.itemAt (self, int?row, int?column) ``` [ 返回一個指針布局項目時(_row_,_column_) 。 ](qgraphicslayoutitem.html) ``` QGraphicsLayoutItem QGraphicsGridLayout.itemAt (self, int?index) ``` [](qgraphicslayoutitem.html) [從重新實現](qgraphicslayoutitem.html)[QGraphicsLayout.itemAt](qgraphicslayout.html#itemAt)( ) 。 返回位于布局項目_index_,或者0 ,如果沒有布局這個項目索引處。 ``` QGraphicsGridLayout.removeAt (self, int?index) ``` 從重新實現[QGraphicsLayout.removeAt](qgraphicslayout.html#removeAt)( ) 。 刪除的項目布局_index_不破壞它。該項目的所有權轉移給調用者。 **See also** [addItem](qgraphicsgridlayout.html#addItem)( ) 。 ``` QGraphicsGridLayout.removeItem (self, QGraphicsLayoutItem?item) ``` 該_item_爭論 刪除布局項目_item_不破壞它。該項目的所有權轉移給調用者。 此功能被引入Qt的4.8 。 **See also** [addItem](qgraphicsgridlayout.html#addItem)( ) 。 ``` Qt.Alignment QGraphicsGridLayout.rowAlignment (self, int?row) ``` [ 返回的對齊方式_row_。 ](index.htm) [**See also**](index.htm) [setRowAlignment](qgraphicsgridlayout.html#setRowAlignment)( ) 。 ``` int QGraphicsGridLayout.rowCount (self) ``` 返回行的網格布局的數量。這總是比由布局項目佔據的最后一行的索引多一個(空的行計數,除了那些在最后) 。 ``` float QGraphicsGridLayout.rowMaximumHeight (self, int?row) ``` 返回的最大高度為行,_row_。 **See also** [setRowMaximumHeight](qgraphicsgridlayout.html#setRowMaximumHeight)( ) 。 ``` float QGraphicsGridLayout.rowMinimumHeight (self, int?row) ``` 返回的最小高度為行,_row_。 **See also** [setRowMinimumHeight](qgraphicsgridlayout.html#setRowMinimumHeight)( ) 。 ``` float QGraphicsGridLayout.rowPreferredHeight (self, int?row) ``` 返回該行的首選高度,_row_。 **See also** [setRowPreferredHeight](qgraphicsgridlayout.html#setRowPreferredHeight)( ) 。 ``` float QGraphicsGridLayout.rowSpacing (self, int?row) ``` 返回的行間距_row_。 **See also** [setRowSpacing](qgraphicsgridlayout.html#setRowSpacing)( ) 。 ``` int QGraphicsGridLayout.rowStretchFactor (self, int?row) ``` 返回的拉伸因子_row_。 **See also** [setRowStretchFactor](qgraphicsgridlayout.html#setRowStretchFactor)( ) 。 ``` QGraphicsGridLayout.setAlignment (self, QGraphicsLayoutItem?item, Qt.Alignment?alignment) ``` 設置對齊方式_item_至_alignment_。 **See also** [alignment](qgraphicsgridlayout.html#alignment)( ) 。 ``` QGraphicsGridLayout.setColumnAlignment (self, int?column, Qt.Alignment?alignment) ``` 設置對齊方式_column_至_alignment_。 **See also** [columnAlignment](qgraphicsgridlayout.html#columnAlignment)( ) 。 ``` QGraphicsGridLayout.setColumnFixedWidth (self, int?column, float?width) ``` 設置的固定寬度_column_至_width_。 ``` QGraphicsGridLayout.setColumnMaximumWidth (self, int?column, float?width) ``` 設定的最大寬度_column_至_width_。 **See also** [columnMaximumWidth](qgraphicsgridlayout.html#columnMaximumWidth)( ) 。 ``` QGraphicsGridLayout.setColumnMinimumWidth (self, int?column, float?width) ``` 設置為最小寬度_column_至_width_。 **See also** [columnMinimumWidth](qgraphicsgridlayout.html#columnMinimumWidth)( ) 。 ``` QGraphicsGridLayout.setColumnPreferredWidth (self, int?column, float?width) ``` 設置為首選寬度_column_至_width_。 **See also** [columnPreferredWidth](qgraphicsgridlayout.html#columnPreferredWidth)( ) 。 ``` QGraphicsGridLayout.setColumnSpacing (self, int?column, float?spacing) ``` 設置間距_column_至_spacing_。 **See also** [columnSpacing](qgraphicsgridlayout.html#columnSpacing)( ) 。 ``` QGraphicsGridLayout.setColumnStretchFactor (self, int?column, int?stretch) ``` 設置為拉伸因子_column_至_stretch_。 **See also** [columnStretchFactor](qgraphicsgridlayout.html#columnStretchFactor)( ) 。 ``` QGraphicsGridLayout.setGeometry (self, QRectF?rect) ``` 從重新實現[QGraphicsLayoutItem.setGeometry](qgraphicslayoutitem.html#setGeometry)( ) 。 設置網格布局的邊界幾何_rect_。 ``` QGraphicsGridLayout.setHorizontalSpacing (self, float?spacing) ``` 設置默認的水平間距網格布局_spacing_。 **See also** [horizontalSpacing](qgraphicsgridlayout.html#horizontalSpacing)( ) 。 ``` QGraphicsGridLayout.setRowAlignment (self, int?row, Qt.Alignment?alignment) ``` 設置的對齊方式_row_至_alignment_。 **See also** [rowAlignment](qgraphicsgridlayout.html#rowAlignment)( ) 。 ``` QGraphicsGridLayout.setRowFixedHeight (self, int?row, float?height) ``` 設置為行的固定高度,_row_,以_height_。 ``` QGraphicsGridLayout.setRowMaximumHeight (self, int?row, float?height) ``` 設置最大高度為行,_row_,以_height_。 **See also** [rowMaximumHeight](qgraphicsgridlayout.html#rowMaximumHeight)( ) 。 ``` QGraphicsGridLayout.setRowMinimumHeight (self, int?row, float?height) ``` 設置最小高度為行,_row_,以_height_。 **See also** [rowMinimumHeight](qgraphicsgridlayout.html#rowMinimumHeight)( ) 。 ``` QGraphicsGridLayout.setRowPreferredHeight (self, int?row, float?height) ``` 設置為行的首選高度,_row_,以_height_。 **See also** [rowPreferredHeight](qgraphicsgridlayout.html#rowPreferredHeight)( ) 。 ``` QGraphicsGridLayout.setRowSpacing (self, int?row, float?spacing) ``` 設置間距_row_至_spacing_。 **See also** [rowSpacing](qgraphicsgridlayout.html#rowSpacing)( ) 。 ``` QGraphicsGridLayout.setRowStretchFactor (self, int?row, int?stretch) ``` 設置為拉伸因子_row_至_stretch_。 **See also** [rowStretchFactor](qgraphicsgridlayout.html#rowStretchFactor)( ) 。 ``` QGraphicsGridLayout.setSpacing (self, float?spacing) ``` 設置網格布局的預設間距,垂直和水平,以_spacing_。 **See also** [rowSpacing](qgraphicsgridlayout.html#rowSpacing)()和[columnSpacing](qgraphicsgridlayout.html#columnSpacing)( ) 。 ``` QGraphicsGridLayout.setVerticalSpacing (self, float?spacing) ``` 設置網格布局為默認的垂直間距_spacing_。 **See also** [verticalSpacing](qgraphicsgridlayout.html#verticalSpacing)( ) 。 ``` QSizeF QGraphicsGridLayout.sizeHint (self, Qt.SizeHint?which, QSizeF?constraint?=?QSizeF()) ``` [](qsizef.html) [從重新實現](qsizef.html)[QGraphicsLayoutItem.sizeHint](qgraphicslayoutitem.html#sizeHint)( ) 。 ``` float QGraphicsGridLayout.verticalSpacing (self) ``` 返回網格布局默認的垂直間距。 **See also** [setVerticalSpacing](qgraphicsgridlayout.html#setVerticalSpacing)( ) 。
                  <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>

                              哎呀哎呀视频在线观看