Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

About QStyledItemDelegate #1

Copy link
Copy link
@stephensyn

Description

@stephensyn
Issue body actions

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

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.