Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的表单中有一个名为 cw_calendar 的日历小部件,我想从小部件获取当前日期到我的标签(称为标签)。我正在努力:
ui->label->setText(ui->cw_calendar->selectedDate.toString("dd/mm/yy"));
但它不起作用。拜托,谁能帮帮我
我发现了错误,正确的方法是“ ui->label->setText(ui->cw_calendar->selectedDate().toString("dd/MM/yy")); ”