title: How to implement editor using QTextEdit with toolbar
body: <p>I'm looking for an example on how to implement a typical rich text editor using QTextEdit.</p>
  
  <p>What I need to implement is a toolbar containing formating functions like:
  - bold, underline, intalic
  - font family, size
  - foreground, background color
  - text-alignment</p>
  
  <p>Something like this is implemented in QtCreator in designer.</p>
  
  <p>Thanks for advice :)</p>