标签:const QT int 横坐标 QPoint 详解 factor operator
QPoint类的主要功能是定义了平面上的一个点的坐标,数据类型为int类型,如果想要float类型就需要QPointF。
公共函数
QPoint () | |
---|---|
QPoint ( int x, int y ) | |
bool | isNull () const——Returns true if both the x and y coordinates are set to 0, otherwise returns false. |
int | manhattanLength () const——返回x()和y()的绝对值得和,就是传统上的从原点开始的矢量的“曼哈顿长度” |
int & | rx ()——得到横坐标的引用 |
int & | ry ()——得到纵坐标的引用 |
void | setX ( int x )——设置横坐标 |
void | setY ( int y )——设置纵坐标 |
int | x () const——获得横坐标 |
int | y () const——获得纵坐标 |
QPoint & | operator*= ( float factor ) |
QPoint & | operator*= ( double factor ) |
QPoint & | operator*= ( int factor ) |
QPoint & | operator+= ( const QPoint & point ) |
QPoint & | operator-= ( const QPoint & point ) |
QPoint & | operator/= ( qreal divisor ) |
标签:const,QT,int,横坐标,QPoint,详解,factor,operator 来源: https://www.cnblogs.com/baiweituyou/p/14427267.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。