Qt QTableView - Alignment of checkbox when using IsUserCheckable

前端 未结 6 2556
余生分开走
余生分开走 2021-02-20 03:42

I am using QTableView\'s checkbox flag of Qt::ItemIsUserCheckable to display a checkbox in a table cell.

After reading some things on alignment in an attempt to

6条回答
  •  长情又很酷
    2021-02-20 03:53

    TextAlignmentRole really does mean what it says. Unfortunately, as you probably noticed, there doesn't seem to be any Icon/Widget alignment role available at all.

    Bug report: http://bugreports.qt-project.org/browse/QTBUG-9047

    Same question with some answers: http://lists.trolltech.com/qt-interest/2006-06/msg00476.html

提交回复
热议问题