421 #ifndef QT_NO_DATASTREAM 472 #endif // QT_NO_DATASTREAM 494 #ifndef QT_NO_DEBUG_STREAM 496 dbg.
nospace() <<
"QPoint(" << p.
x() <<
',' << p.
y() <<
')';
502 d.
nospace() <<
"QPointF(" << p.
x() <<
", " << p.
y() <<
')';
835 #ifndef QT_NO_DATASTREAM 851 s << double(p.
x()) <<
double(p.
y());
877 #endif // QT_NO_DATASTREAM The QDebug class provides an output stream for debugging information.
#define QT_END_NAMESPACE
This macro expands to.
QDebug & nospace()
Clears the stream's internal flag that records whether the last character was a space and returns a r...
void setY(qreal y)
Sets the y coordinate of this point to the given y coordinate.
The QPointF class defines a point in the plane using floating point precision.
int & ry()
Returns a reference to the y coordinate of this point.
Q_DECL_CONSTEXPR T qAbs(const T &t)
qreal x() const
Returns the x-coordinate of this point.
QDataStream & operator<<(QDataStream &stream, const QPoint &point)
Writes the given point to the given stream and returns a reference to the stream. ...
#define QT_BEGIN_NAMESPACE
This macro expands to.
int manhattanLength() const
Returns the sum of the absolute values of x() and y(), traditionally known as the "Manhattan length" ...
int & rx()
Returns a reference to the x coordinate of this point.
int version() const
Returns the version number of the data serialization format.
qreal manhattanLength() const
Returns the sum of the absolute values of x() and y(), traditionally known as the "Manhattan length" ...
QDataStream & operator>>(QDataStream &stream, QPoint &point)
Reads a point from the given stream into the given point and returns a reference to the stream...
The QPoint class defines a point in the plane using integer precision.
int y() const
Returns the y coordinate of this point.
void setX(qreal x)
Sets the x coordinate of this point to the given x coordinate.
qreal y() const
Returns the y-coordinate of this point.
The QDataStream class provides serialization of binary data to a QIODevice.
int x() const
Returns the x coordinate of this point.
QDebug & space()
Writes a space character to the debug stream and returns a reference to the stream.
QDataStream & operator<<(QDataStream &out, const QUrl &url)
Writes url url to the stream out and returns a reference to the stream.
QDataStream & operator>>(QDataStream &in, QUrl &url)
Reads a url into url from the stream in and returns a reference to the stream.