随笔分类 - QT
QT
    
摘要:QtCreator的一些自定义代码字体和颜色 一、配色方案: 配置方法:工具->选项->文本编辑器->配色方案 如果对这些QtCreator自带的配色方案不满意,则需要手动进行添加 方法:这些配色方案是以xml文件的形式存在于 %QtCreatorDir%\share\qtcreator\style
        阅读全文
                
摘要:自主编译Qt Creator和Qt Designer源码 来源 https://blog.csdn.net/libaineu2004/article/details/104728857/ Qt Creator和Qt Designer都是很好的学习项目。 一、官方源码下载 1、官方github源码 h
        阅读全文
                
摘要:Qt编写自定义控件插件路过的坑及注意事项 来源 https://www.cnblogs.com/feiyangqingyun/p/6182320.html 在一日一控件的口号下,终于写好了五十几个自定义控件,包括各种仪表盘,各种温度计,各种进度条,各种按钮等,具体可参见(http://www.cnb
        阅读全文
                
摘要:sqlite3 外键作用原理和使用方法 来源 https://blog.csdn.net/devanchen/article/details/66530098 从SQLite 3.6.19 开始支持 外键约束. 外键约束用来强制 两个表之间”存在”的关系. 不论update,insert,repla
        阅读全文
                
摘要:SQLite 数据类型 和 基本命令 https://www.sqlite.org/index.html https://www.runoob.com/sqlite/sqlite-data-types.html https://github.com/pawelsalawa/sqlitestudio 
        阅读全文
                
摘要:libevent for qt 的讨论 来源 https://www.cnblogs.com/findumars/p/6352071.html 参考 https://www.cnblogs.com/findumars/p/6352071.html 一直对Qt官方的QtNetwork模块抱有遗憾,Qt
        阅读全文
                
摘要:Qt与Web混合开发(一) 来源 https://jaredtao.github.io/2020/03/04/Qt%E4%B8%8EWeb%E6%B7%B7%E5%90%88%E5%BC%80%E5%8F%91(%E4%B8%80) 前言 简介 Qt的Web方案 Quick WebGL Stream
        阅读全文
                
摘要:Qml开发中的性能Tips(翻译文) 来源 https://cloud.tencent.com/developer/article/1468124 1.关于图像性能Tips 1.1 位图格式对比矢量图格式 Qt支持任何标准图像格式,包括PNG和JPEG等位图格式,以及SVG等矢量图形格式。与位图图像
        阅读全文
                
摘要:事件接收与忽略 来源 https://blog.51cto.com/devbean/225519 本章内容也是关于Qt事件。或许这一章不能有一个完整的例子,因为对于事件总是感觉很抽象,还是从底层上理解一下比较好的吧!前面说到了事件的作用,下面来看看我们如何来接收事件。回忆一下前面的代码,我们在子类中
        阅读全文
                
摘要:四舍五入 qFloor qCeil qRound qFloor 向下取整 无条件舍去 qCeil 向上取整 无条件进位 qRound 四舍五入 也可以使用 QString::number() 函数 或 QString::arg() 函数 int qFloor(qreal v) Return the 
        阅读全文
                
摘要:Qt高级编码约定 参考 https://wiki.qt.io/Coding_Conventions 来源 https://zhuanlan.zhihu.com/p/97723847 发布于 2019-12-16 这是我们在编写Qt代码时使用的高级编码约定的概述。有关Qt代码规范,请参见Qt代码风格一
        阅读全文
                
摘要:QTextCodec::codecForLocale #include "qwmainwindow.h" #include <QApplication> #include <QTextCodec> #include <QDebug> int main(int argc, char *argv[]) 
        阅读全文
                
摘要:无边框窗口拖动代码 protected: // 用于鼠标拖动窗口的鼠标事件操作 void mousePressEvent(QMouseEvent * event); void mouseMoveEvent(QMouseEvent * event); void mouseReleaseEvent(QM
        阅读全文
                
摘要:QString QByteArray char 之间的转换 { // 1. char 与 QChar 的转换 char ch1 = 'a'; QChar qch1 = QChar::fromLatin1('b'); qDebug("file(%s) fileno(%d) : ch1(%c) str2
        阅读全文
                
摘要:Qt 程序发布指南 威武的涛哥 的博客文章地址 https://jaredtao.github.io/2019/09/02/Qt%E5%AE%9E%E7%94%A8%E6%8A%80%E8%83%BD6-%E7%A8%8B%E5%BA%8F%E5%8F%91%E5%B8%83%E6%8C%87%E5
        阅读全文
                
摘要:qt demo CMakeLists CMakeLists.txt cmake_minimum_required(VERSION 3.5) project(qt-hello VERSION 0.1 LANGUAGES CXX) set(CMAKE_INCLUDE_CURRENT_DIR ON) se
        阅读全文
                
摘要:Q_DECLARE_PRIVATE与Q_DECLARE_PUBLIC 来源 https://blog.csdn.net/liulihuo_gyh/article/details/80081069 参考 https://blog.csdn.net/seanyxie/article/details/61
        阅读全文
                
摘要:QMetaObject::connectSlotsByName [static] void QMetaObject::connectSlotsByName(QObject *object) Searches recursively for all child objects of the given
        阅读全文
                
摘要:使用QStringBuilder进行字符串连接 来源 https://www.qt.io/cn/blog/2011/08/22/string-concatenation-with-qstringbuilder Published on Monday August 22, 2011 by Debao 
        阅读全文
                
摘要:源码必须是UTF-8,QString需要它 来源 https://www.qt.io/cn/blog/2012/05/16/source-code-must-be-utf-8-and-qstring-wants-it Published on Wednesday May 16, 2012 by De
        阅读全文
                
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号