[closed] Image is not displaying on pushbutton
I want to add an image on push button, below is the code. The only problem is the app is running without a single error but the image is not being displayed on the button
Can anyone tell me what is wrong in the code…..Resource file is properly added and also the path is correct
- #include "overview.h"
- #include "ui_overview.h"
- #include <QFile>
- #include <QMessageBox>
- Overview::Overview(QWidget *parent) :
- ui(new Ui::Overview)
- QString fileName("D:/solar4000/QT/images/actual.png");
- if(QFile(fileName).exists() == false)
- QMessageBox::warning(this, "Application", "Wrong file name : " + fileName);
- delete ui;