随笔分类 -  Qt

VS2019使用Qt4.8.7
摘要:取消系统变量中的Qt_INCLUDEPATH_。 C:\Users\octob\AppData\Local\QtMsBuild中添加qt4.natvis.xml,qt4.natvis for visual studio 2015 for qt4 I verified QString, QVector 阅读全文

posted @ 2022-11-29 15:53 OctoberKey 阅读(228) 评论(0) 推荐(0)

VS2019编译Qt4.8.7
摘要:下载4.8.7源码Index of /archive/qt/4.8/4.8.7 复制mkspecs\win32-msvc2015到mkspecs\win32-msvc2019 修改qmake.conf 第2行:2017=>2019 第4行:2017=>2019 第12行:_MSC_VER=1920 阅读全文

posted @ 2022-11-29 13:19 OctoberKey 阅读(905) 评论(0) 推荐(0)

Qt设置背景颜色,QLabel,QWidget……
摘要:void setBackground(QWidget* widget, const QBrush& brush) { QPalette palette(widget->palette()); palette.setBrush(QPalette::Background, brush); widget- 阅读全文

posted @ 2022-08-26 13:19 OctoberKey 阅读(357) 评论(0) 推荐(0)

QtnProperty代码编译
摘要:代码地址 GitHub:QtnProperty 编译环境 IDE: Microsoft Visual Studio Community 2019, 16.11.15 Qt: 5.12.5_msvc2017, 32bit OS: Windows 10 家庭版,21H2 Qt Visual Studio 阅读全文

posted @ 2022-08-04 14:45 OctoberKey 阅读(500) 评论(0) 推荐(0)

QtExtra代码编译
摘要:代码地址 GitHub:QtExtra 编译环境 IDE: Microsoft Visual Studio Community 2019, 16.11.15 Qt: 5.12.5_msvc2017, 32bit OS: Windows 10 家庭版,21H2 Qt Visual Studio Too 阅读全文

posted @ 2022-08-04 13:09 OctoberKey 阅读(72) 评论(0) 推荐(0)

Qt重新入坑(2)——项视图类学习(2)
摘要:QAbstractItemDelegate派生类总结 代理的主要作用 告诉View,数据的静态显示形式; 告诉View,数据的交互显示形式; 从Model里获取数据,交给View显示; 从View里获取修改的数据,更新回Model; 代理时序图 Delegate和Model渲染View的不同点 Mo 阅读全文

posted @ 2022-06-14 18:10 OctoberKey 阅读(73) 评论(0) 推荐(0)

Qt重新入坑(1)——项视图类学习(1)
摘要:QAbstractTableModel派生类总结 使用容器Map、List等容器存储数据; 必须实现rowCount、columnCount、data 3个纯虚函数; rowCount的功能: // 设置tableView的总行数 // 一般是容器的大小 int CurrencyModel::row 阅读全文

posted @ 2022-06-14 14:43 OctoberKey 阅读(85) 评论(0) 推荐(0)

Qt VS项目 Props 路径设置
摘要:将以下代码移到自定义属性页(Props)的后面,这样可以让自定义属性页(Props)起作用。 <ImportGroup ...> ... </ImportGroup> <PropertyGroup Condition="'$(QtMsBuild)'=='' or !Exists('$(QtMsBui 阅读全文

posted @ 2021-05-29 22:36 OctoberKey 阅读(1858) 评论(0) 推荐(0)

导航