title: How to draw a header in my own widget in Qt?
body: <p>Does anyone know how to draw a header (and other simple elements), just like in, for example, QTreeWidget, in my own widget?
  I would like to use style and call something like:
  drawElement(CE_Header, rect, painter);
  to draw standard header in specified rect.</p>
  
  <p>QStyle::drawControl can't do it, because it draws control over whole widget.</p>
  
  <p>Qt documentation doesn't say much about it.</p>