会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tonny1000
博客园
首页
新随笔
联系
订阅
管理
2021年4月8日
用QT写的模拟街机跑马游戏
摘要: RunHorse游戏 无需注册,手机用户首次登录 立即奖励5 USDT,可直接提现,24H 内到账。 下载链接 http://www.yurenxinchuang.com/RunHorse
阅读全文
posted @ 2021-04-08 22:58 tonny1000
阅读(133)
评论(0)
推荐(0)
2021年2月10日
QTcpServer QTcpSoket 实现文件更新
摘要: 服务端写文件: #include "UpdateServer.h" UpdateServer::UpdateServer(QWidget *parent) : QWidget(parent), m_filesize(0), m_socket(nullptr), m_currentWritten(0)
阅读全文
posted @ 2021-02-10 20:57 tonny1000
阅读(319)
评论(0)
推荐(0)
QTcpSoket QTcpServer
摘要: 客户端: QNetworkProxyFactory::setUseSystemConfiguration(false); //取消代理链接 serverIP = new QHostAddress(); if (!serverIP->setAddress("127.0.0.1")) QMessageB
阅读全文
posted @ 2021-02-10 20:37 tonny1000
阅读(304)
评论(0)
推荐(0)
QT 发射自定义信号
摘要: emit sendInfo(sinfo); 需要在头文件中 定义自己的信号,不需要实现 signals: void sendInfo(QString);
阅读全文
posted @ 2021-02-10 20:29 tonny1000
阅读(237)
评论(0)
推荐(0)
QT 判断动画播放完毕
摘要: if (fra == mv->frameCount() - 1) { mv->stop(); }
阅读全文
posted @ 2021-02-10 20:27 tonny1000
阅读(304)
评论(0)
推荐(0)
QT 播放资源中的声音文件
摘要: m_play = new MediaPlay(this); m_play->setMedia("qrc:/music/run.MP3"); //先将run.MP3添加到 QRC 资源中 m_play->play();
阅读全文
posted @ 2021-02-10 20:26 tonny1000
阅读(210)
评论(0)
推荐(0)
QT 播放动画
摘要: QT 播放动画 可以通过QLabel 设置Movie来实现 mv = new QMovie("hello.gif"); //添加 动画文件 mv->setScaledSize(ui.label->size()); // 设置动画画布和QLabel尺寸一样大小 ui.label->setMovie(m
阅读全文
posted @ 2021-02-10 20:25 tonny1000
阅读(150)
评论(0)
推荐(0)
QT 设置窗口固定大小
摘要: this->setMaximumSize(this->size()); this->setMinimumSize(this->size()); 通过将现有尺寸同时设置最大,最小尺寸实现
阅读全文
posted @ 2021-02-10 20:22 tonny1000
阅读(598)
评论(0)
推荐(0)
Qt 应用打包(Windows)
摘要: 通过运行QT 安装目录下bin 下的 windowdeploy.exe D:\myproject\horse.exe 就会在D:\project下 自动生成运行所需 动态库和文件夹, 移植到新的环境发现还不能运行的化,请下载VS 插件 vcredist_x64.exe 基本上就OK了
阅读全文
posted @ 2021-02-10 20:20 tonny1000
阅读(55)
评论(0)
推荐(0)
QWidget 设置图片背景色
摘要: QPalette palette = this->palette(); palette.setBrush(QPalette::Window, QBrush(QPixmap(":/bak/gc.jpg").scaled(this->size(), Qt::IgnoreAspectRatio, Qt::
阅读全文
posted @ 2021-02-10 20:15 tonny1000
阅读(122)
评论(0)
推荐(0)
下一页
公告