Skip to content

About QStyledItemDelegate #1

Description

@stephensyn

为了在TableView中格式化显示信息,重写了delegate的:
void paint(QPainter* painter,const QStyleOptionViewItem& option,const QModelIndex& index) const;
结果:
1、实现了想要的格式。
问题:
1、重绘过的Item单元不能被点击(未重绘时,点击Item会变为蓝底黑字,重绘后点击无变化,任然为)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions