! Sets which point of the text rect shall be aligned with \a position. Examples: \li If \a alignment is Qt::AlignHCenter | Qt::AlignTop , the text will be positioned such that the top of the text rect will be horizontally centered on \a position. \li If \a alignment is Qt::AlignLeft | Qt::AlignBottom , \a position will indicate the bottom left corner of the text rect
| 28957 | setTextAlignment. |
| 28958 | */ |
| 28959 | void QCPItemText::setPositionAlignment(Qt::Alignment alignment) |
| 28960 | { |
| 28961 | mPositionAlignment = alignment; |
| 28962 | } |
| 28963 | |
| 28964 | /*! |
| 28965 | Controls how (multi-lined) text is aligned inside the text rect (typically Qt::AlignLeft, Qt::AlignCenter or Qt::AlignRight). |