登录
首页 » 界面开发 » QT扫雷 (windows编译)通用

QT扫雷 (windows编译)通用

于 2022-01-21 发布 文件大小:218.96 kB
0 175
下载积分: 2 下载次数: 1

代码说明:

资源描述主要运用的方法: 1、继承QLabel的来实现自己的Block类, 2、重写Block类的mousePressEvent(QMouseEvent* event)函数来响应相应鼠标事件, 3、使用QGirdLayout进行布局。 下面对每个性质进行分析: 性质1、应当是一开始就确定的,故在内部设置一个mine_flag_,由Block的构造函数初始化; 性质2、在内部设置一个标志ok_flag_,一开始默认为false,当外界访问了方块时,设置为true。那么访问操作为何?即鼠标左键事件,下面讨论; 性质3、当BlockArea每个方块构建完之后,此方块的数字就确定了,所以我们可以提供一个setNumber(int)函数,这个函数只应在设置BlockArea时调用; 性质4、内部设置一个mark_flag_,当外界进行设置操作时,进行。那么何为设置操作?即鼠标右键事件,下面讨论。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 电子相册,用java写的电子相册,希望对大家有用,我试了下,是可用的...
    电子相册,用java写的电子相册,希望对大家有用,我试了下,是可用的-Electronic album, using java to write the electronic album, hope for all of us, I would try the next, is available
    2022-10-09 18:15:03下载
    积分:1
  • 编译了一个简单的计算器,实现最基本的功能,乘除加减
    编译了一个简单的计算器,实现最基本的功能,乘除加减-compile a simple calculator, to achieve the most basic functions, multiplication and division Modified
    2022-03-18 07:49:56下载
    积分:1
  • 基本日志/租用/注册
    资源描述aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
    2022-08-08 02:10:19下载
    积分:1
  • MiniGUI代码
    minigui的代码-MiniGUI code
    2023-03-05 14:20:03下载
    积分:1
  • Display a Web Page in a Plain C Win32 Application: There are numerous examples...
    Display a Web Page in a Plain C Win32 Application: There are numerous examples that demonstrate how to embed Internet Explorer in your own window. But these examples typically use Microsoft Foundation Classes (MFC), .NET, C#, or at least the Windows Template Library (WTL) because those frameworks have pre-fabricated "wrappers" to easily give you an "HTML control" to embed in your window. If you re trying to use plain C, without MFC, WTL, .NET, C#, or even any C++ code at all, then there is a dirth of examples and information how to deal with OLE/COM objects such as IE s IWebBrowser2. Here is an article and working example in C to specifically show you what you need to do in order to embed IE in your own window, and more generally, show you how to interact with OLE/COM objects and create your own objects in plain C.
    2022-03-02 15:03:00下载
    积分:1
  • USB 控制
    这个小程序是USB协议的实习与通讯代码。欢迎下载、使用。谢谢大家的支持。
    2022-05-07 03:02:04下载
    积分:1
  • Vc中关于Word的编程(表格)
    Vc中关于Word的编程(表格)-Vc on the Word of programming (Forms)
    2023-07-15 11:00:04下载
    积分:1
  • This is with VC game series, the Russian box, and realize the game functions,
    这是用VC编的小游戏,俄罗斯方块,实现了游戏功能,-This is with VC game series, the Russian box, and realize the game functions,
    2022-10-24 15:40:02下载
    积分:1
  • 百叶窗风格(这是一个在图片框中以百叶窗的方式动态显示图形的示例)(...
    百叶窗风格(这是一个在图片框中以百叶窗的方式动态显示图形的示例)(-louver-style (this is a picture of the box to shutter the dynamic display graphic examples) (
    2022-03-12 03:04:28下载
    积分:1
  • 电池监控控件
    用于显示存留电量,电池监控软件
    2022-01-30 10:59:09下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载