设置按钮快捷键 现有一个保存的按钮,需要按Ctrl+S来实现快捷保存。 代码实现 ui->savebutton->setShortcut(QKeySequence(QLatin1String("Ctrl+S")));在Qt Designer中设置 按钮的界面中有一个shorcut,我们只要在键盘输入 ...
分类:
其他好文 时间:
2020-01-27 22:22:31
阅读次数:
102
教程:创建安装程序 本教程描述如何为一个小项目创建一个简单的安装程序: 本节描述创建安装程序所必须完成的步骤: 1. 创建一个 包文件夹 ,其中将包含所有配置文件和可安装的包。 2. 创建一个 配置文件 ,其中包含有关如何构建安装程序二进制文件和联机存储库的信息。 3. 创建一个 包信息文件 ,其中 ...
分类:
其他好文 时间:
2020-01-27 22:17:09
阅读次数:
98
目录 - 概述 - 转换 - 函数和操作 - 截取字符串 - 判断是否以特定的子串开始或结束 - 字符填充 - 子串查找 - 插入字符与字符串 - 删除字符与字符串 - 替换字符与字符串 概述 C++实现了两种字符串:①C风格的字符串,以'\0'结尾;②std::string。Qt也实现了自己的字符 ...
分类:
其他好文 时间:
2020-01-27 22:11:55
阅读次数:
110
目录 - 一、用windepolyqt.exe发布exe应用程序 - 二、打包成单文件exe - 三、打包安装程序 已剪辑自: https://blog.csdn.net/yhl_sophia/article/details/83311047 一、用windepolyqt.exe发布exe应用程序 ...
分类:
其他好文 时间:
2020-01-27 22:07:23
阅读次数:
103
已剪辑自: https://www.cnblogs.com/retry/p/9328715.html QChar 类是 Qt 中用于表示一个字符的类,实现在 QtCore 共享库中。QChar 类内部用2个字节的Unicode编码来表示一个字符。 一、编码 //char类型是c/c++中内置的类型, ...
分类:
其他好文 时间:
2020-01-27 22:06:51
阅读次数:
72
新建一个Fragment的过程 package com.example.myactivityiiii; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import and ...
分类:
移动开发 时间:
2020-01-27 17:33:41
阅读次数:
102
Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 1673 ...
分类:
其他好文 时间:
2020-01-27 17:11:56
阅读次数:
80
A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number ...
分类:
其他好文 时间:
2020-01-27 13:55:18
阅读次数:
58
Every email consists of a local name and a domain name, separated by the @ sign. For example, in , is the local name, and is the domain name. Besides ...
分类:
其他好文 时间:
2020-01-27 09:33:24
阅读次数:
73
/** * 格式化时间 * * @param {time} 时间 * @param {cFormat} 格式 * @return {String} 字符串 * * @example formatTime('2018-1-29', '{y}/{m}/{d} {h}:{i}:{s}') // -> 20 ...
分类:
其他好文 时间:
2020-01-27 00:08:53
阅读次数:
55