<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國際加速解決方案。 廣告
                # QLine Class Reference ## [[QtCore](index.htm) module] 該QLine類提供了使用整數精度的二維矢量。[More...](#details) ### Methods * `__init__ (self)` * `__init__ (self, QPoint?pt1_, QPoint?pt2_)` * `__init__ (self, int?x1pos, int?y1pos, int?x2pos, int?y2pos)` * `__init__ (self, QLine)` * `int dx (self)` * `int dy (self)` * `bool isNull (self)` * `QPoint p1 (self)` * `QPoint p2 (self)` * `setLine (self, int?aX1, int?aY1, int?aX2, int?aY2)` * `setP1 (self, QPoint?aP1)` * `setP2 (self, QPoint?aP2)` * `setPoints (self, QPoint?aP1, QPoint?aP2)` * `translate (self, QPoint?point)` * `translate (self, int?adx, int?ady)` * `QLine translated (self, QPoint?p)` * `QLine translated (self, int?adx, int?ady)` * `int x1 (self)` * `int x2 (self)` * `int y1 (self)` * `int y2 (self)` ### Special Methods * `QLine __mul__ (self, QMatrix?m)` * `QLine __mul__ (self, QTransform?m)` * `int __bool__ (self)` * `bool __eq__ (self, QLine?d)` * `bool __ne__ (self, QLine?d)` * `str __repr__ (self)` * * * ## Detailed Description 這個類可以醃制。 該QLine類提供了使用整數精度的二維矢量。 甲QLine描述了一個二維表面上的有限長度線(或線段) 。利用整數點精度為坐標指定該行的起點和終點。使用[QLineF](qlinef.html)構造函數來檢索一個浮點副本。 | ![](https://img.kancloud.cn/8b/42/8b4251cb26ade208b9583fb6ee2d3e5a_333x312.png) | ![](https://img.kancloud.cn/e1/5b/e15b3c208029e1e933df0321f87bdcc2_333x312.png) | 可使用檢索到的線的開始點和結束點的位置的[p1](qline.html#p1)( )[x1](qline.html#x1)( )[y1](qline.html#y1)( )[p2](qline.html#p2)( )[x2](qline.html#x2)()和[y2](qline.html#y2)()函數。該[dx](qline.html#dx)()和[dy](qline.html#dy)()函數返回該行的水平和垂直分量。使用[isNull](qline.html#isNull)( )來確定QLine是否代表有效的線或空行。 最后,該線可以被轉換的給定使用偏移[translate](qline.html#translate)()函數。 * * * ## Method Documentation ``` QLine.__init__ (self) ``` 構造一個空行。 ``` QLine.__init__ (self, QPoint?pt1_, QPoint?pt2_) ``` 構造一個線對象,它代表之間的界線_p1_和_p2_。 ``` QLine.__init__ (self, int?x1pos, int?y1pos, int?x2pos, int?y2pos) ``` 構造一個線對象,它代表之間(線_x1_,_y1_)和(_x2_,_y2_) 。 ``` QLine.__init__ (self, QLine) ``` ``` int QLine.dx (self) ``` 返回該行的矢量的水平分量。 **See also** [dy](qline.html#dy)( ) 。 ``` int QLine.dy (self) ``` 返回該行的矢量的垂直分量。 **See also** [dx](qline.html#dx)( ) 。 ``` bool QLine.isNull (self) ``` 返回True如果該行沒有設置與有效的起始和結束點,否則返回False 。 ``` QPoint QLine.p1 (self) ``` [ 返回該行的起點。 ](qpoint.html) [**See also**](qpoint.html) [setP1](qline.html#setP1)( )[x1](qline.html#x1)( )[y1](qline.html#y1)()和[p2](qline.html#p2)( ) 。 ``` QPoint QLine.p2 (self) ``` [ 返回該行的終點。 ](qpoint.html) [**See also**](qpoint.html) [setP2](qline.html#setP2)( )[x2](qline.html#x2)( )[y2](qline.html#y2)()和[p1](qline.html#p1)( ) 。 ``` QLine.setLine (self, int?aX1, int?aY1, int?aX2, int?aY2) ``` 設置此行到開始_x1_,_y1_并在結束_x2_,_y2_。 此功能被引入Qt的4.4 。 **See also** [setP1](qline.html#setP1)( )[setP2](qline.html#setP2)( )[p1](qline.html#p1)()和[p2](qline.html#p2)( ) 。 ``` QLine.setP1 (self, QPoint?aP1) ``` 設置此行的起點,以_p1_。 此功能被引入Qt的4.4 。 **See also** [setP2](qline.html#setP2)()和[p1](qline.html#p1)( ) 。 ``` QLine.setP2 (self, QPoint?aP2) ``` 設置此行的終點_p2_。 此功能被引入Qt的4.4 。 **See also** [setP1](qline.html#setP1)()和[p2](qline.html#p2)( ) 。 ``` QLine.setPoints (self, QPoint?aP1, QPoint?aP2) ``` 設置此行的起點_p1_并且這條線的終點_p2_。 此功能被引入Qt的4.4 。 **See also** [setP1](qline.html#setP1)( )[setP2](qline.html#setP2)( )[p1](qline.html#p1)()和[p2](qline.html#p2)( ) 。 ``` QLine.translate (self, QPoint?point) ``` 由給定的轉換這一行_offset_。 ``` QLine.translate (self, int?adx, int?ady) ``` 這是一個重載函數。 翻譯這行指定的距離_dx_和_dy_。 ``` QLine QLine.translated (self, QPoint?p) ``` [ 返回此行翻譯由給定_offset_。 此功能被引入Qt的4.4 。 ](qline.html) ``` QLine QLine.translated (self, int?adx, int?ady) ``` [ 這是一個重載函數。 返回此行翻譯指定的距離_dx_和_dy_。 此功能被引入Qt的4.4 。 ``` int QLine.x1 (self) ``` 返回該行的起始點的X坐標。 ](qline.html) [**See also**](qline.html) [p1](qline.html#p1)( ) 。 ``` int QLine.x2 (self) ``` 返回該行的結束點的x坐標。 **See also** [p2](qline.html#p2)( ) 。 ``` int QLine.y1 (self) ``` 返回該行的起點的y坐標。 **See also** [p1](qline.html#p1)( ) 。 ``` int QLine.y2 (self) ``` 返回該行的結束點的Y坐標。 **See also** [p2](qline.html#p2)( ) 。 ``` QLine __mul__ (self, QMatrix?m) ``` [ 如果QtGui模塊導入此方法僅適用。 ](qline.html) ``` QLine __mul__ (self, QTransform?m) ``` [ 如果QtGui模塊導入此方法僅適用。 ``` int QLine.__bool__ (self) ``` ``` bool QLine.__eq__ (self, QLine?d) ``` ``` bool QLine.__ne__ (self, QLine?d) ``` ``` str QLine.__repr__ (self) ``` ](qline.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>

                              哎呀哎呀视频在线观看