16,212
社区成员
发帖
与我相关
我的任务
分享
int main(int argc, char *argv[])
{
CMainWnd oOdCm;
oOdCm.showMaximized();
return a.exec();
}
CMainWnd::CMainWnd(QWidget *parent)
: QMainWindow(parent)
{
pushbtn = new QPushButton(this);
m_pLabel6->setGeometry(QRect(0, 0, 80, 25));
QObject::connect(pushbtn , SIGNAL(Clicked()), this, SLOT(OrderManage()));
}
void CMainWnd::OrderManage()
{
COrderComm OrdCom;
OrdCom.AddCltsWndCtrls(this);
return;
}
COrderComm::COrderComm(QWidget *parent)
: QMainWindow(parent)
{
}
void COrderComm::AddCltsWndCtrls(QMainWindow *pWnd)
{
m_pLabelKind = new QLabel(pWnd);
m_pLabelKind->setObjectName(QString::fromUtf8("label_kinds"));
m_pLabelKind->setGeometry(QRect(0, 0, 70, 25));
m_pLabelKind->show();
}
void CMainWnd::OrderManage()
{
m_pLabelKind = new QLabel(this);
m_pLabelKind->setObjectName(QString::fromUtf8("label_kinds"));
m_pLabelKind->setGeometry(QRect(0, 0, 70, 25));
m_pLabelKind->show();
return;
}