Thanks for the response.
I did try the other boundingRect methods and they gave a different error, the error they gave was for the wrong number of parameters passed to the function so it looks like Rect_4 is the one I want. As far as I can determine:
TC -> Qt
boundingRect_3 ->
boundingRect ( QChar
ch ) const
boundingRect_4 ->
boundingRect ( const QString &
text ) const
boundingRect_5 ->
boundingRect ( int
x, int
y, int
width, int
height, int
flags, const QString &
text, int
tabStops = 0, int *
tabArray = 0 ) const
boundingRect_6 ->
boundingRect ( const QRect &
rect, int
flags, const QString &
text, int
tabStops = 0, int *
tabArray = 0 ) const