I have created a dialog box using the qt designer. it generate me a .ui, cpp and header.
the cpp is defined :
DialogAbout::DialogAbout(QWidget *parent) :
QDialog(parent),
ui(new Ui::DialogAbout)
{
ui->buildversion->setText("toto");
ui->setupUi(this);
}
header
class DialogAbout : public QDialog
{
Q_OBJECT
public:
explicit DialogAbout(QWidget *parent = 0);
~DialogAbout();
QLabel *buildversion;
private:
Ui::DialogAbout *ui;
};
and the UI looks like :
My app is crashing each time I'm accessing the this dialog box when trying to
ui->buildversion->setText("toto");
Any idea ?
Thanks