How to add multiple lines of text from a single class to a scene [SOLVEÐ]
-
I have been looking around at ways of solving the issue, but haven't found anything yet. What I want is to print speed, altitude, angle, etc... of my plane on the screen, on different lines, but can't manage to print more than one line. Can anyone point to any options I might have to get this done that does not involve creating many classes?
-
Hi,
Do you mean a QGraphicsScene ? If so QGraphicsTextItem is probably what you are looking for
-
What do you mean with "with pointers" ?
-
This post is deleted!
-
What I mean by with pointers is I make QGraphicsTextItem *text1 = new QGraphicsTextItem(); and set the text, font and size and add it to the scene.
-
Ok, so what happened before is that the item you added was destroyed before it could be shown