title: Qt5.6 drawing multi-line text
body: <p>I want to draw a mutli-line text string with alignment options, do any of the drawText functions in Qt handle this?</p>
  
  <p>I want to pass a string "LINE 1\nLINE 2\nLINE 3\n", with alignment options and draw the text around a specified X,Y point.</p>
  
  <p>So far I'm splitting the string by "\n" then drawing the lines individually.  </p>
  
  <p>Also I need to calculate the bounding rectangle required to draw the text so I can create a widget with geometry to contain the text.</p>
  
  <p>I've search for a solution and read on several sites that QPainter::drawText will do this, however when I use drawText with a string containing \n I get one line of text rendered with the \n displayed on the display.</p>