title: how to define boundingRect for user defined text
body: <p>i have to define an QAbstractGraphicsShapeItem  which  displays a text using the data given by the user . 
   so i need some suggestions on how to define the boundingRect for the user defined text as the text size varies in length .</p>