xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

資源簡(jiǎn)介

基于QT的C語(yǔ)言實(shí)現(xiàn)的連連看游戲源碼,結(jié)合一些簡(jiǎn)單的C++代碼在linux QT下編寫(xiě)完成的,包含登陸注冊(cè)模塊,游戲關(guān)卡、游戲排行統(tǒng)計(jì)等功能,主要的代碼是C語(yǔ)言,非常適合初學(xué)者閱讀。請(qǐng)注意,我所編寫(xiě)的QT Creator 4.6.2也許和您使用的QT版本不一,如果要直接編譯看效果的話請(qǐng)保證和我編譯的QT Creator 4.6.版本一致。

資源截圖

代碼片段和文件信息

#include?“aboutgamewindow.h“
#include?“ui_aboutgamewindow.h“
#include?“l(fā)oginwindow.h“
#include?“enterwindow.h“
#include?“widget.h“
#include?“helpgamewindow.h“

AboutGameWindow::AboutGameWindow(QWidget?*parent)?:
????QWidget(parent)
????ui(new?Ui::AboutGameWindow)
{
????ui->setupUi(this);

????this->setWindowtitle(tr(“關(guān)于游戲“));??//設(shè)置窗口的標(biāo)題
????this->setGeometry(230230600400);???//設(shè)置窗口的位置和大小
????this->setFixedSize(600400);??????????//固定窗口的大小


????QPalette?enterBackground;???????//頁(yè)面背景
????enterBackground.setBrush(QPalette::BackgroundQBrush(QPixmap(“source/beijing10.jpeg“)));
????this->setPalette(enterBackground);

????//文檔標(biāo)簽說(shuō)明
?????QFont?ft4;
????aboutGameNameLab=new?QLabel(this);??????//游戲名稱
????aboutGameNameLab->move(12080);
//????aboutGameNameLab->setFont(QFont(“System“12QFont::Normaltrue));
????aboutGameNameLab->setText(tr(“游戲名稱:趣味連連看“));
????QPalette?aboutGameNameLabpa;?//作用設(shè)置各種背景色
????aboutGameNameLabpa.setColor(QPalette::WindowTextQt::black);
????aboutGameNameLab->setPalette(aboutGameNameLabpa);
????ft4.setPointSize(12);
????aboutGameNameLab->setFont(ft4);


????aboutGameSystemLab=new?QLabel(this);??????//游戲運(yùn)行系統(tǒng)
????aboutGameSystemLab->move(120120);
?//???aboutGameSystemLab->setFont(QFont(“System“12QFont::Normaltrue));
????aboutGameSystemLab->setText(tr(“運(yùn)行系統(tǒng):linux“));
????QPalette?aboutGameSystemLabpa;?//作用設(shè)置各種背景色
????aboutGameSystemLabpa.setColor(QPalette::WindowTextQt::black);
????aboutGameSystemLab->setPalette(aboutGameSystemLabpa);
????ft4.setPointSize(12);
????aboutGameSystemLab->setFont(ft4);


????aboutGameAuthorLab=new?QLabel(this);??????//游戲作者
????aboutGameAuthorLab->move(120160);
//????aboutGameAuthorLab->setFont(QFont(“System“12QFont::Normaltrue));
????aboutGameAuthorLab->setText(tr(“游戲作者:文件-樂(lè)鵬?操作-彭燦?趙平?界面-張文廣“));
????QPalette?aboutGameAuthorLabpa;?//作用設(shè)置各種背景色
????aboutGameAuthorLabpa.setColor(QPalette::WindowTextQt::black);
????aboutGameAuthorLab->setPalette(aboutGameAuthorLabpa);
????ft4.setPointSize(12);
????aboutGameAuthorLab->setFont(ft4);


????aboutGameStateLab=new?QLabel(this);??????//游戲聲明
????aboutGameStateLab->move(120200);
?//???aboutGameStateLab->setFont(QFont(“System“12QFont::Normaltrue));
????aboutGameStateLab->setText(tr(“游戲聲明:本游戲版權(quán)所有為中軟國(guó)際0708嵌入式班\n????????????????未經(jīng)同意,不得商用!“));
????QPalette?aboutGameStateLabpa;?//作用設(shè)置各種背景色
????aboutGameStateLabpa.setColor(QPalette::WindowTextQt::red);
????aboutGameStateLab->setPalette(aboutGameStateLabpa);
????ft4.setPointSize(12);
????aboutGameStateLab->setFont(ft4);

????aboutReturnBtn=new?QPushButton(tr(“返回主菜單“)this);????????????????//返回主菜單按鈕
????connect(aboutReturnBtnSIGNAL(clicked())thisSLOT(aboutReturnMainMenu()));??//返回按鈕事件
????this->aboutReturnBtn->setGeometry(24030010035);
}

AboutGameWindow::~AboutGameWindow()
{
????delete?ui;
}

void?AboutGameWindow::aboutReturnMainMenu()
{
????EnterWindow?*w7=new?EnterWindow;
????w7->show();
????w7->setWindowtitle(tr(“游戲界面“));??//設(shè)置窗口的標(biāo)題
????w7->setGeometry(230230600400);???//設(shè)置窗口的位置和大小
????w7->setFix

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-03-11?19:09??Design\
?????文件????????1144??2014-10-16?22:18??Design\Design.pro
?????文件???????11842??2014-10-28?18:56??Design\Design.pro.user
?????文件???????99943??2014-10-12?16:23??Design\Game.cpp
?????文件????????1888??2014-10-12?10:34??Design\Game.h
?????文件??????174064??2014-10-12?16:23??Design\Game.o
?????文件???????21896??2014-10-27?18:32??Design\Makefile
?????文件????????3683??2014-10-12?09:50??Design\aboutgamewindow.cpp
?????文件?????????781??2014-10-09?19:25??Design\aboutgamewindow.h
?????文件??????399620??2014-10-12?09:50??Design\aboutgamewindow.o
?????文件?????????400??2014-10-09?17:47??Design\aboutgamewindow.ui
?????文件????????4900??2014-10-10?21:07??Design\enterwindow.cpp
?????文件????????1043??2014-10-10?21:03??Design\enterwindow.h
?????文件??????400552??2014-10-12?10:34??Design\enterwindow.o
?????文件?????????392??2014-10-09?09:54??Design\enterwindow.ui
?????文件??????311316??2014-10-27?18:32??Design\gamewindow.o
?????文件????????2368??2014-10-12?09:43??Design\helpgamewindow.cpp
?????文件?????????615??2014-10-09?19:05??Design\helpgamewindow.h
?????文件??????396004??2014-10-12?09:43??Design\helpgamewindow.o
?????文件?????????398??2014-10-09?16:33??Design\helpgamewindow.ui
?????文件????????4194??2014-10-12?09:40??Design\loginwindow.cpp
?????文件?????????831??2014-10-09?11:07??Design\loginwindow.h
?????文件??????409264??2014-10-12?09:41??Design\loginwindow.o
?????文件?????????392??2014-10-08?21:13??Design\loginwindow.ui
?????文件?????????565??2014-10-10?09:30??Design\main.cpp
?????文件??????333120??2014-10-10?09:59??Design\main.o
?????文件??????323848??2014-10-27?18:32??Design\menuwindow.o
?????文件????????2407??2014-10-09?19:27??Design\moc_aboutgamewindow.cpp
?????文件??????308500??2014-10-09?19:27??Design\moc_aboutgamewindow.o
?????文件????????2759??2014-10-12?09:30??Design\moc_enterwindow.cpp
?????文件??????309288??2014-10-12?09:30??Design\moc_enterwindow.o
............此處省略177個(gè)文件信息

評(píng)論

共有 條評(píng)論

相關(guān)資源