按钮图标修改测试

This commit is contained in:
flykhan 2023-08-30 19:57:29 +08:00
parent aad4cb963f
commit 0fe9ca51a1
2 changed files with 8 additions and 0 deletions

View File

@ -198,3 +198,8 @@ void MainWindow::setCurrentSlider(int currentProgress)
// 设置时间滑动条状态 // 设置时间滑动条状态
ui->time_slider->setValue(currentProgress); ui->time_slider->setValue(currentProgress);
} }
void MainWindow::on_play_btn_clicked()
{
ui->play_btn->setIcon(QIcon(":/icon/button"));
}

View File

@ -51,6 +51,9 @@ signals:
void currentTimeSignal(int time); // 当前时间信号 void currentTimeSignal(int time); // 当前时间信号
void currentProgressSignal(int currentProgress); // 当前进度信号 void currentProgressSignal(int currentProgress); // 当前进度信号
private slots:
void on_play_btn_clicked();
private: private:
Ui::MainWindow *ui; Ui::MainWindow *ui;
}; };