i need to use checkbox with text, like this "Check all":

![enter image description here](https://i.stack.imgur.com/YyiCB.png)

in header of QStanndardItemModel. I tried like this

```
QStandardItem* item0 = new QStandardItem("some text");
item0->setCheckable(true);
item0->setCheckState(Qt::Checked);
item0->setText("some text");

_model->setHorizontalHeaderItem(1, item0);

```

This way only works for items not for header, i mean for items if i use 

```
_model->setItem(new QStandardItem(some_item);

```

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? 

Regards