Important: Please read the Qt Code of Conduct -

Set QGraphicsTextItem anchor to lower-left instead of upper-left?

  • Hi there! I am trying to get a QGraphicsTextItem to anchor in the lower-left hand corner instead of the upper-left hand corner, so each new line shifts the text up one line instead of just appending them to the end. I am doing some hacking to adjust the pos() on setPlainText(), but it is kind of a pain.

    Is this possible?

Log in to reply