Skip to content

about lineEdit #2

Description

@stephensyn

问题:
LineEdit通过QDataWidgetMapper绑定了数据,希望显示的数据格式保留2位小数。比如500.00
` dataMap = new QDataWidgetMapper;
//给QDataWidgetMapper加载数据源
dataMap->setModel(repair_filter_model);

dataMap->addMapping(ui->lineEdit_Amount, 11);`

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions