title: How to create QToolBar in QWidget?
body: <p>I am trying to add a <code>QToolBar</code> in a <code>QWidget</code>. But I want its functionality to work as if it was a <code>QMainWindow</code>. </p>
  
  <p>Apparently I can not create <code>QToolBar</code> in a <code>QWidget</code>, and using <code>setAllowedAreas</code> does not work with <code>QWidget</code> : it only works with <code>QMainWindow</code>. Also, my <code>QWidget</code> is in a <code>QMainWindow</code>.</p>
  
  <p>How can I create a <code>QToolBar</code> for my widget?</p>