
qt
wanyongtai
这个作者很懒,什么都没留下…
展开
-
根据ttf文件 获取汉字点阵数据
根据ttf文件 获取汉字点阵数据原创 2022-06-21 22:56:00 · 1023 阅读 · 1 评论 -
CMakeLists.txt加载第三方库
CMakeLists.txt加载第三方库原创 2022-06-21 22:40:36 · 1734 阅读 · 0 评论 -
读取 ttf 字体文件并提取汉字轮廓
读取 ttf 字体文件并提取汉字轮廓原创 2022-06-21 21:59:29 · 932 阅读 · 0 评论 -
Qt 重定位日至输出到文件
Qt 重定位日至输出到文件#include <QApplication>#include <QFile>#include <QMutex>#include <QDateTime>#include <QTextStream>void myMessageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg){ //原创 2021-08-25 07:44:30 · 258 阅读 · 0 评论 -
This application failed to start because it could not find or load the Qt platform plugin “xcb“.
This application failed to start because it could not find or load the Qt platform plugin “xcb”.linux系统下Qt5编译好的程序在未安装Qt的系统下运行会报以下错误:This application failed to start because it could not find or load the Qt platform plugin “xcb”.Reinstalling the applicat转载 2021-03-09 14:53:18 · 192 阅读 · 0 评论 -
win7系统+Qt Creator配置VTK
pro 文件添加INCLUDEPATH +=$$quote(C:\Program Files\VTK\include\vtk-8.1)LIBS +=$$quote(D:/VTK/VTK-8.1.0/build/lib/Debug/vtk*.lib)main.cpp#include <vtkAutoInit.h>VTK_MODULE_INIT(vtkRenderingOpenGL2);VTK_MODULE_INIT(vtkInteractionStyle);#include&l原创 2020-05-15 00:36:02 · 405 阅读 · 1 评论 -
QT信号槽传递复杂参数
原理1、先将想要传递的多个数据封装成一个结构体 2、然后再用QVariant打包 3、通过信号槽机制传送 4、传到目标类后再解开QVariant的到自己想要的数据实验目标 按下按钮后,将界面上3个控件的值传递到Product目标类,并打印输出实现步骤1 定义结构体2 定义信号,以QVariant为参数3、构造参数,并发送信号...原创 2018-05-25 21:08:39 · 10378 阅读 · 2 评论 -
QSS之QPushButton 详细介绍
官方参考资料QPushButton { /* 前景色 */ color:red; /* 背景色 */ background-color:rgb(30,75,10); /* 边框风格 */ border-style:outset; /* 边框宽度 */ border-width:2px; ...原创 2018-05-06 02:03:58 · 45539 阅读 · 6 评论 -
QT 之 CSS 进阶
只需要在全局设置 QApplication 的 StyleSheet,整个程序的所有控件都会参考css文件的效果int main(int argc, char *argv[]){ QApplication a(argc, argv); QFile styleFile(&amp;amp;amp;quot;style.css&amp;amp;amp;quot;); if(styleFile.open(QIODevice::ReadOnl...原创 2018-05-12 08:51:35 · 638 阅读 · 0 评论 -
Windows Qt 源码编译
编译准备1、安装mingw 2、下载qt源码编译开始运行configure大约5分钟 第一个提示选择商业版 还是 开源版 第二个只能选择accept this license offer。运行mingw32-make第一次编译大约需要5小时 如果修改不多,再次编译大约需要5分钟结束验证运行 qt-everywhere-opensource-s...原创 2018-04-23 13:44:41 · 4854 阅读 · 3 评论