#include "desktop2.h" #include "ui_desktop2.h" #include #include #include "music/music.h" desktop2::desktop2(QWidget *parent) : QWidget(parent), ui(new Ui::desktop2) { ui->setupUi(this); QDate date = QDate::currentDate(); ui->label_16->setText(date.toString("yyyy年MM月dd日 dddd")); } desktop2::~desktop2() { delete ui; } /*music*/ void desktop2::on_pushButton_6_clicked() { emit music_ready(true); qDebug()<<"music"; } /*相机*/ void desktop2::on_pushButton_4_clicked() { emit cam_ready(true); qDebug()<<"camera"; } void desktop2::on_pushButton_5_clicked() { emit set_ready(true); qDebug()<<"set"; } void desktop2::on_pushButton_8_clicked() { emit album_ready(true); qDebug()<<"album"; }