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

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # QPainterPathStroker Class Reference ## [[QtGui](index.htm) module] 該QPainterPathStroker類是用來產生可填寫概述對于給定的畫家路徑。[More...](#details) ### Methods * `__init__ (self)` * `Qt.PenCapStyle capStyle (self)` * `QPainterPath createStroke (self, QPainterPath?path)` * `float curveThreshold (self)` * `float dashOffset (self)` * `list-of-float dashPattern (self)` * `Qt.PenJoinStyle joinStyle (self)` * `float miterLimit (self)` * `setCapStyle (self, Qt.PenCapStyle?style)` * `setCurveThreshold (self, float?threshold)` * `setDashOffset (self, float?offset)` * `setDashPattern (self, Qt.PenStyle)` * `setDashPattern (self, list-of-float?dashPattern)` * `setJoinStyle (self, Qt.PenJoinStyle?style)` * `setMiterLimit (self, float?length)` * `setWidth (self, float?width)` * `float width (self)` * * * ## Detailed Description 該QPainterPathStroker類是用來產生可填寫概述對于給定的畫家路徑。 通過調用[createStroke](qpainterpathstroker.html#createStroke)( )函數,傳遞一個給定的[QPainterPath](qpainterpath.html)作為參數,表示給定路徑的輪廓的新畫家路徑被創建。新創建的畫家路徑然后可以填充繪制原畫師路徑的輪廓。 您可以控制??各種設計方面使用以下功能的概述(寬度,帽樣式,加入風格和虛線樣式) : * [setWidth](qpainterpathstroker.html#setWidth)() * [setCapStyle](qpainterpathstroker.html#setCapStyle)() * [setJoinStyle](qpainterpathstroker.html#setJoinStyle)() * [setDashPattern](qpainterpathstroker.html#setDashPattern)() 該[setDashPattern](qpainterpathstroker.html#setDashPattern)( )函數接受一個既[Qt.PenStyle](qt.html#PenStyle-enum)對象和模式作為參數向量表示。 此外,您可以指定一個曲線的閾值時,控制與曲線繪制的粒度,使用[setCurveThreshold](qpainterpathstroker.html#setCurveThreshold)()函數。預設的閾值是一個很好的調整值( 0.25 ) ,并且通常你不需要修改它。但是,您可以通過降低它的價值使曲線的外觀更光滑。 您還可以控制斜接限制使用生成的輪廓[setMiterLimit](qpainterpathstroker.html#setMiterLimit)()函數。斜接限制說明如何遠離每個加盟斜角連接可以延長。在寬的單位是所指定的限制,因此pixelwise斜接限制會`miterlimit * width`。此值僅用于聯接風格[Qt.MiterJoin](qt.html#PenJoinStyle-enum)。 通過所產生的畫家路徑[createStroke](qpainterpathstroker.html#createStroke)( )函數應該只用于概述給定的畫家路徑。否則可能會導致意外行為。生成的輪廓也需要[Qt.WindingFill](qt.html#FillRule-enum)排除這是默認設置。 * * * ## Method Documentation ``` QPainterPathStroker.__init__ (self) ``` 創建一個新的司爐。 ``` Qt.PenCapStyle QPainterPathStroker.capStyle (self) ``` [ 返回生成輪廓的端點樣式。 ](qt.html#PenCapStyle-enum) [**See also**](qt.html#PenCapStyle-enum) [setCapStyle](qpainterpathstroker.html#setCapStyle)( ) 。 ``` QPainterPath QPainterPathStroker.createStroke (self, QPainterPath?path) ``` [ 產生一個新的路徑就是代表給定的輪廓可填寫區域_path_。 ](qpainterpath.html) [輪廓的各個方面的設計都是基于撫摩的屬性:](qpainterpath.html)[width](qpainterpathstroker.html#width)( )[capStyle](qpainterpathstroker.html#capStyle)( )[joinStyle](qpainterpathstroker.html#joinStyle)( )[dashPattern](qpainterpathstroker.html#dashPattern)( )[curveThreshold](qpainterpathstroker.html#curveThreshold)()和[miterLimit](qpainterpathstroker.html#miterLimit)( ) 。 生成的路徑應該只用于概述給定的畫家路徑。否則可能會導致意外行為。生成的輪廓也需要[Qt.WindingFill](qt.html#FillRule-enum)排除這是默認設置。 ``` float QPainterPathStroker.curveThreshold (self) ``` 返回生成的輪廓曲線扁平化的門檻。 **See also** [setCurveThreshold](qpainterpathstroker.html#setCurveThreshold)( ) 。 ``` float QPainterPathStroker.dashOffset (self) ``` 返回沖刺的輪廓產生偏移。 **See also** [setDashOffset](qpainterpathstroker.html#setDashOffset)( ) 。 ``` list-of-float QPainterPathStroker.dashPattern (self) ``` 返回生成的輪廓虛線樣式。 **See also** [setDashPattern](qpainterpathstroker.html#setDashPattern)( ) 。 ``` Qt.PenJoinStyle QPainterPathStroker.joinStyle (self) ``` [ 返回生成的輪廓線的連接樣式。 ](qt.html#PenJoinStyle-enum) [**See also**](qt.html#PenJoinStyle-enum) [setJoinStyle](qpainterpathstroker.html#setJoinStyle)( ) 。 ``` float QPainterPathStroker.miterLimit (self) ``` 返回斜接限制為生成的輪廓。 **See also** [setMiterLimit](qpainterpathstroker.html#setMiterLimit)( ) 。 ``` QPainterPathStroker.setCapStyle (self, Qt.PenCapStyle?style) ``` 設置生成的輪廓的帽子風格_style_。如果一個虛線樣式設置,圖案各部分是受帽_style_。 **See also** [capStyle](qpainterpathstroker.html#capStyle)( ) 。 ``` QPainterPathStroker.setCurveThreshold (self, float?threshold) ``` 指定曲線變平_threshold_,控制與所生成的輪廓'曲線繪制的粒度。 預設的閾值是一個很好的調整值( 0.25 ) ,并且通常你不需要修改它。但是,您可以通過降低它的價值使曲線的外觀更光滑。 **See also** [curveThreshold](qpainterpathstroker.html#curveThreshold)( ) 。 ``` QPainterPathStroker.setDashOffset (self, float?offset) ``` 設置破折號所生成的輪廓,以抵消_offset_。 請參閱該文檔[QPen.setDashOffset](qpen.html#setDashOffset)( )為破折號的描述偏移。 **See also** [dashOffset](qpainterpathstroker.html#dashOffset)( ) 。 ``` QPainterPathStroker.setDashPattern (self, Qt.PenStyle) ``` 設置所生成的輪廓的虛線樣式_style_。 **See also** [dashPattern](qpainterpathstroker.html#dashPattern)( ) 。 ``` QPainterPathStroker.setDashPattern (self, list-of-float?dashPattern) ``` 這是一個重載函數。 設置所生成的輪廓的虛線樣式_dashPattern_。此功能使得它可以指定自定義虛線樣式。 向量中的每個元素都包含在行程短劃線和空格的長度,用連字符和空格之間的第一個元素的第一個破折號,在第二個元素的第一個空間,并為每個下列成對的元素交替的開始。 該載體可含有的元素,在這種情況下,最后一個元素將通過當圖案重復第一元件的長度延伸的一個奇數。 ``` QPainterPathStroker.setJoinStyle (self, Qt.PenJoinStyle?style) ``` 設置生成的輪廓的風格加入到_style_。 **See also** [joinStyle](qpainterpathstroker.html#joinStyle)( ) 。 ``` QPainterPathStroker.setMiterLimit (self, float?length) ``` 設置生成的輪廓的斜接限制_limit_。 斜接限制說明如何遠離每個加盟斜角連接可以延長。被指定在當前設置的寬度為單位的限制。所以pixelwise斜接限制會`miterlimit * width`。 此值僅用于聯接風格[Qt.MiterJoin](qt.html#PenJoinStyle-enum)。 **See also** [miterLimit](qpainterpathstroker.html#miterLimit)( ) 。 ``` QPainterPathStroker.setWidth (self, float?width) ``` 設置所生成的輪廓畫家路徑的寬度_width_。 所生成的輪廓將延長約50%的_width_為給定的輸入路徑的原始輪廓的每一側。 **See also** [width](qpainterpathstroker.html#width)( ) 。 ``` float QPainterPathStroker.width (self) ``` 返回生成的輪廓的寬度。 **See also** [setWidth](qpainterpathstroker.html#setWidth)( ) 。
                  <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>

                              哎呀哎呀视频在线观看