{
Q_OBJECT
public:
QLabel * labelActivatedStatus;
virtual ~Platform();
};
//this is constructor
{
labelPlatformType
= new QLabel(tr
("Platform Type :"));
labelPlatformType->setParent(parent);
labelPlatformType
->setGeometry
(QRect(20,
30,
80,
18));
editPlatformType
->setGeometry
(QRect(100,
30,
113,
18));
labelActivatedStatus
= new QLabel(tr
("Activated Status :"));
labelActivatedStatus->setParent(parent);
labelActivatedStatus
->setGeometry
(QRect(20,
50,
100,
18));
editActivatedStatus
->setGeometry
(QRect(130,
50,
81,
18));
platformOS
= new QLabel(tr
("Platform OS :"));
platformOS->setParent(parent);
platformOS
->setGeometry
(QRect(250,
30,
100,
18));
editPlatformOS
->setGeometry
(QRect(332,
30,
91,
18));
timeout
= new QLabel(tr
("Timeout :"));
timeout->setParent(parent);
timeout
->setGeometry
(QRect(250,
50,
100,
18));
editTimeout
->setGeometry
(QRect(310,
50,
113,
18));
}
class Platform : public QWidget
{
Q_OBJECT
public:
QLabel * labelPlatformType;
QLineEdit * editPlatformType;
QLabel * labelActivatedStatus;
QLineEdit * editActivatedStatus;
QLabel * platformOS;
QLineEdit * editPlatformOS;
QLabel * timeout;
QLineEdit * editTimeout;
Platform( QWidget *parent = 0);
virtual ~Platform();
};
//this is constructor
Platform::Platform(QWidget *parent): QWidget(parent)
{
labelPlatformType= new QLabel(tr("Platform Type :"));
labelPlatformType->setParent(parent);
labelPlatformType->setGeometry(QRect(20, 30, 80, 18));
editPlatformType= new QLineEdit(parent);
editPlatformType->setGeometry(QRect(100, 30, 113, 18));
labelActivatedStatus= new QLabel(tr("Activated Status :"));
labelActivatedStatus->setParent(parent);
labelActivatedStatus->setGeometry(QRect(20, 50, 100, 18));
editActivatedStatus= new QLineEdit(parent);
editActivatedStatus->setGeometry(QRect(130, 50, 81, 18));
platformOS= new QLabel(tr("Platform OS :"));
platformOS->setParent(parent);
platformOS->setGeometry(QRect(250, 30, 100, 18));
editPlatformOS= new QLineEdit(parent);
editPlatformOS->setGeometry(QRect(332, 30, 91, 18));
timeout= new QLabel(tr("Timeout :"));
timeout->setParent(parent);
timeout->setGeometry(QRect(250, 50, 100, 18));
editTimeout= new QLineEdit(parent);
editTimeout->setGeometry(QRect(310, 50, 113, 18));
}
To copy to clipboard, switch view to plain text mode
Maybe you got some new ideas? I don't know whats wrong here
Bookmarks