嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 10 元微信扫码支付:10 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
鼠标控制飞机击落敌机
initScene();
QPushButton *button=new QPushButton(this);
button->setObjectName("button");
button->setGeometry(200,300,130,80);
button->setText(tr("Go"));
label=new QLabel(this);
label->setGeometry(0,2,150,20);
label->setStyleSheet("QLabel{font-family:'宋体';font-size:26px;color:rgb(0,0,0,255);}\
QLabel{background-color:rgb(170,200,50)}\ QPushButton:hover{background-color:rgb(50, 170, 200)}");
button->setStyleSheet("QPushButton{font-family:'宋体';font-size:32px;color:rgb(0,0,0,255);}\
QPushButton{background-color:rgb(170,200,50)}\ QPushButton:hover{background-color:rgb(50, 170, 200)}");
button->show();
QTimer *m_Timer1 = new QTimer(this);
connect(button, SIGNAL(clicked()), this, SLOT(Gamebegin()));
connect(button, SIGNAL(clicked()), button, SLOT(hide()));
connect(m_Timer1, SIGNAL(timeout()), this, SLOT(handleTimeout()));
result=0;
m_Timer1->setInterval(1000);
m_Timer1->start();