
Qt
keep_hardworking
勤能补拙,孰能生巧
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Qt 用户登录相关设置
#include "widget.h" #include "ui_widget.h" #include <QMessageBox>Widget::Widget(QWidget *parent) : QWidget(parent), ui(new Ui::Widget) { ui->setupUi(this); ui->lineEdit_2->setEchoMode(Q原创 2017-10-29 09:59:20 · 596 阅读 · 0 评论 -
将Qt应用程序打包成可安装的软件
打包软件下载地址:http://pan.baidu.com/s/1dDQHqoD 我的应用程序的release目录文件:http://pan.baidu.com/s/1pJRcQoj 有一点需要注意的是,有一些动态库有两个文件,一个是release版本,另一个是debug版本,debug版本的名字后面多一个字母d;比如第一步:首先,生成release的版本,并将应用程序用到的动态库都拷贝到应用程序所转载 2017-10-29 18:02:24 · 2849 阅读 · 3 评论 -
messagebox
1、最简单的 QMessageBox msgBox; msgBox.setText(“The document has been modified.”); msgBox.exec(); //call exec() to show the message. 2、升级版 QMessageBox msgBox; msgBox.setText(“The document has been原创 2017-10-29 11:49:42 · 348 阅读 · 0 评论 -
Qt文本编辑器
对着资料敲出来的,要自己实现肯定要花很久很久,最大的感受是不一定所有函数都弄成槽函数,可以定义普通函数,然后槽函数调用普通函数。 mainwindow 菜单栏 工具栏 内容 状态栏main.cpp#include <QtGui/QApplication> #include "mainwindow.h" #include <QTextCodec> int main(int argc, cha原创 2017-10-29 20:37:50 · 1803 阅读 · 0 评论 -
qt小知识
这周双休,本想自己用Qt写一个小的扫雷程序,结果啊,卡在了鼠标左键找对象,连片消除,的上面,做了一半做不动啊,但是成果不能白费,所以在此处总结一下我查资料后的的一些收获。1、设置窗口背景图片 QPixmap pixmap = QPixmap(“F:/Qt/qt/untitled1/bg.png”).scaled(this->size()); QPalette palette(this-原创 2017-10-22 16:13:32 · 299 阅读 · 0 评论