16,200
社区成员
发帖
与我相关
我的任务
分享
#include <QtGui/QApplication>
#include "widget1.h"
#include "widget2.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Widget1 w1;
Widget2 w2;
QObject::connect(&w1, SIGNAL(logined()), &w2, SLOT(show()));
w1.show();
return a.exec();
}