Does anyone know how to center a QPushButton within a QTableWidget.
I need to create a dynamic set of menu icons in a grid, with scrollbars for
content that may be off screen. The QTableWidget seems to work to some
extent, but interested if others think a better Qt list class would be better.
Attached is a sample screenshot. I want the pushbuttons to be centered
within the larger grid size of the table.
I have left the grid lines on for reference, but these will be removed in practice.
Do the text alignment flags work here, or is a delegate required, or perhaps a derivative
of QTableWidget.
Bookmarks