📅  最后修改于: 2022-03-11 14:56:37.328000             🧑  作者: Mango
connect(ui->canvas, &MyCanvas::mouseLoc,
this, // <- control object
[this](const QString& st)
{this->ui->statusBar->showMessage(st, 0);});