<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國際加速解決方案。 廣告
                # QPoint Class Reference ## [[QtCore](index.htm) module] 該QPoint類定義使用整數精度在平面上的一個點。[More...](#details) ### Methods * `__init__ (self)` * `__init__ (self, int?xpos, int?ypos)` * `__init__ (self, QPoint)` * `bool isNull (self)` * `int manhattanLength (self)` * `setX (self, int?xpos)` * `setY (self, int?ypos)` * `int x (self)` * `int y (self)` ### Special Methods * `QPoint __mul__ (self, QMatrix?m)` * `QPoint __mul__ (self, QMatrix4x4?matrix)` * `QPoint __mul__ (self, QTransform?m)` * `QPoint __add__ (self, QPoint?p2)` * `int __bool__ (self)` * `QPoint __div__ (self, float?c)` * `bool __eq__ (self, QPoint?p2)` * `QPoint __iadd__ (self, QPoint?p)` * `QPoint __idiv__ (self, float?c)` * `QPoint __imul__ (self, int?c)` * `QPoint __imul__ (self, float?c)` * `QPoint __isub__ (self, QPoint?p)` * `QPoint __mul__ (self, int?c)` * `QPoint __mul__ (self, QPoint?p)` * `QPoint __mul__ (self, float?c)` * `QPoint __mul__ (self, QPoint?p)` * `bool __ne__ (self, QPoint?p2)` * `QPoint __neg__ (self)` * `str __repr__ (self)` * `QPoint __sub__ (self, QPoint?p2)` * * * ## Detailed Description 這個類可以醃制。 該QPoint類定義使用整數精度在平面上的一個點。 被指定的點由斧頭協調和使用y坐標可接的[x](qpoint.html#x)()和[y](qpoint.html#y)()函數。該[isNull](qpoint.html#isNull)如果x和y都設置為0 ()函數返回真。坐標可以使用設置(或改變)的[setX](qpoint.html#setX)()和[setY](qpoint.html#setY)()函數,或者在[rx](qpoint.html#rx)()和[ry](qpoint.html#ry)( ),它返回引用到坐標(允許直接操作)等功能。 給定一個點_p_,下面的語句是等價的: ``` QPoint p; p.setX(p.x() + 1); p += QPoint(1, 0); p.rx()++; ``` 甲QPoint對象也可以被用作載體:加法和減法的定義為矢量(每個組分單獨加入) 。一個QPoint對象也可以通過分頻或倍頻`int`或`qreal`。 此外, QPoint類提供[manhattanLength](qpoint.html#manhattanLength)()函數,它給出了QPoint物體的長度的一種廉價的近似解釋為一個向量。最后,相比QPoint對象可以被串流播放,以及。 * * * ## Method Documentation ``` QPoint.__init__ (self) ``` 構造一個零點,即坐標為( 0,0) **See also** [isNull](qpoint.html#isNull)( ) 。 ``` QPoint.__init__ (self, int?xpos, int?ypos) ``` 構造一個點與給定的坐標(_x_,_y_) 。 **See also** [setX](qpoint.html#setX)()和[setY](qpoint.html#setY)( ) 。 ``` QPoint.__init__ (self, QPoint) ``` ``` bool QPoint.isNull (self) ``` 返回True如果x和y坐標都設置為0 ,否則返回False 。 ``` int QPoint.manhattanLength (self) ``` 返回的絕對值之和[x](qpoint.html#x)()和[y](qpoint.html#y)( ) ,傳統上被稱為“曼哈頓長度”從原點的向量的點。例如: ``` [QPoint](qpoint.html) oldPosition; MyWidget.mouseMoveEvent([QMouseEvent](qmouseevent.html) *event) { [QPoint](qpoint.html) point = event->pos() - oldPosition; if (point.manhattanLength() > 3) // the mouse has moved more than 3 pixels since the oldPosition } ``` 這是一個有用的,快速的計算,近似真實的長度: ``` double trueLength = sqrt(pow(x(), 2) + pow(y(), 2)); ``` “曼哈頓長度”的傳統產生,是因為這樣的距離適用于旅客誰只能行駛在矩形網格,就像曼哈頓的大街上。 ``` QPoint.setX (self, int?xpos) ``` 設置該點的x坐標,以給定的_x_協調。 **See also** [x](qpoint.html#x)()和[setY](qpoint.html#setY)( ) 。 ``` QPoint.setY (self, int?ypos) ``` 設置該點的y坐標為給定的_y_協調。 **See also** [y](qpoint.html#y)()和[setX](qpoint.html#setX)( ) 。 ``` int QPoint.x (self) ``` 返回該點的x坐標。 **See also** [setX](qpoint.html#setX)()和[rx](qpoint.html#rx)( ) 。 ``` int QPoint.y (self) ``` 返回此點的y坐標。 **See also** [setY](qpoint.html#setY)()和[ry](qpoint.html#ry)( ) 。 ``` QPoint __mul__ (self, QMatrix?m) ``` [ 如果QtGui模塊導入此方法僅適用。 ](qpoint.html) ``` QPoint __mul__ (self, QMatrix4x4?matrix) ``` [ 如果QtGui模塊導入此方法僅適用。 ](qpoint.html) ``` QPoint __mul__ (self, QTransform?m) ``` [ 如果QtGui模塊導入此方法僅適用。 ](qpoint.html) ``` QPoint QPoint.__add__ (self, QPoint?p2) ``` [ ``` int QPoint.__bool__ (self) ``` ](qpoint.html) ``` QPoint QPoint.__div__ (self, float?c) ``` [ ``` bool QPoint.__eq__ (self, QPoint?p2) ``` ](qpoint.html) ``` QPoint QPoint.__iadd__ (self, QPoint?p) ``` [](qpoint.html) ``` QPoint QPoint.__idiv__ (self, float?c) ``` [](qpoint.html) ``` QPoint QPoint.__imul__ (self, int?c) ``` [](qpoint.html) ``` QPoint QPoint.__imul__ (self, float?c) ``` [](qpoint.html) ``` QPoint QPoint.__isub__ (self, QPoint?p) ``` [](qpoint.html) ``` QPoint QPoint.__mul__ (self, int?c) ``` [](qpoint.html) ``` QPoint QPoint.__mul__ (self, QPoint?p) ``` [](qpoint.html) ``` QPoint QPoint.__mul__ (self, float?c) ``` [](qpoint.html) ``` QPoint QPoint.__mul__ (self, QPoint?p) ``` [ ``` bool QPoint.__ne__ (self, QPoint?p2) ``` ](qpoint.html) ``` QPoint QPoint.__neg__ (self) ``` [ ``` str QPoint.__repr__ (self) ``` ](qpoint.html) ``` QPoint QPoint.__sub__ (self, QPoint?p2) ``` [](qpoint.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>

                              哎呀哎呀视频在线观看