title: QStandardItemModel header with widget and text
body: <p>i need to use checkbox with text, like this "Check all":</p>
  
  <p><img src="https://i.stack.imgur.com/YyiCB.png" alt="enter image description here"></p>
  
  <p>in header of QStanndardItemModel. I tried like this</p>
  
  <pre><code>QStandardItem* item0 = new QStandardItem("some text");
  item0-&gt;setCheckable(true);
  item0-&gt;setCheckState(Qt::Checked);
  item0-&gt;setText("some text");
  
  _model-&gt;setHorizontalHeaderItem(1, item0);
  </code></pre>
  
  <p>This way only works for items not for header, i mean for items if i use </p>
  
  <pre><code>_model-&gt;setItem(new QStandardItem(some_item);
  </code></pre>
  
  <p>I heard about writing my own class which inherit QHeaderView but i dont know if this can help in my problem. I would ask if there is a easy way to achieve this? </p>
  
  <p>Regards</p>