> I added an assignment of QStypeOptionButton rect from options, and that now
> shows the text, but the rest of the button is not rendered (Attached). If I
> use a pushbutton to initialize options I've got to subclass it because
> initStypeOptions is protected (why?), won't I overwrite the supp
> Sent: Thursday, December 07, 2017 at 1:10 AM
> From: "André Somers"
> To: interest@qt-project.org
> Subject: Re: [Interest] Change QCheckBox to QPushButton in a QTableView
>
...
> >
> > But all I got out of it was a black pixel in the first cell.
>
Op 07/12/2017 om 00:21 schreef Jason H:
> I have a model, a few columns of which are supposed to be QPushButtons.
> I've got it working with checkboxes just fine, and I can get the QPushButtons
> to display while editing.
> But I want to display the checkable QPushButton reflecting it's checke
Hi Jason,
You'll have to initialise quite a bit more in the QStyleOptionButton
button than just the text - especially the inherited rect member.
Maybe QStyleOption.initFrom can help, or create an override class on
QPushButton to expose its initStyleOption.
Hope that helps, Tony
On 7/12/2
I have a model, a few columns of which are supposed to be QPushButtons.
I've got it working with checkboxes just fine, and I can get the QPushButtons
to display while editing.
But I want to display the checkable QPushButton reflecting it's checked state
to be displayed all the time, not just wh