now i changed to QT Creator is better i wish that's my code cause i have ew error here :
/home/lassoued/design/FormUI/Frm.cpp:5: erreur: invalid use of incomplete type «struct Ui::Frm»
that's the code:
#include "Frm.h"
#include "ui_Frm.h"
{
ui->setupUi(this);
}
Frm::~Frm()
{
delete ui;
}
#include "Frm.h"
#include "ui_Frm.h"
Frm::Frm(QWidget *parent)
: QMainWindow(parent), ui(new Ui::Frm)
{
ui->setupUi(this);
}
Frm::~Frm()
{
delete ui;
}
To copy to clipboard, switch view to plain text mode
#ifndef FRM_H
#define FRM_H
#include <QtGui/QMainWindow>
namespace Ui
{
class Frm;
}
{
Q_OBJECT
public:
~Frm();
private:
Ui::Frm *ui;
};
#endif // FRM_H
#ifndef FRM_H
#define FRM_H
#include <QtGui/QMainWindow>
namespace Ui
{
class Frm;
}
class Frm : public QMainWindow
{
Q_OBJECT
public:
Frm(QWidget *parent = 0);
~Frm();
private:
Ui::Frm *ui;
};
#endif // FRM_H
To copy to clipboard, switch view to plain text mode
Bookmarks