I am trying to draw a rectangle with a text inside. here is my piece of code
QGraphicsRectItem *rectangle=new QGraphicsRectItem(75,50,30,40);
QGraphicsTextItem *text=new QGraphicsTextItem("12.5",rectangle);
scene->addItem(rectangle);
the text isn't in the rectangle. Can anyone help me with this?
_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to