
Qt
文章平均质量分 61
cmake.EXE
乱写一通作为记录,勿关注
展开
-
保命技能:Windows/Linux平台下,快速将文本干扰/倒序
快速将剪切板的内容进行逆序以及加干扰原创 2022-10-18 17:43:22 · 406 阅读 · 0 评论 -
Windows10 编译 QWTPlot3d
Windows10 编译 QWTPlot3d下载:qwtplot3d-0.2.7.zip (2020.12.21)http://qwtplot3d.sourceforge.net/解压, 用Qt打开,进行编译报错:error: dependent ‘…\qwtplot3d\include\gl\GLU.H’ does not exist.qwtplot3d.pro文件,修改该文件部分内容:win32:TEMPLATE = vclib 修改为:#win32:TEMPLATE原创 2020-12-21 17:15:56 · 719 阅读 · 0 评论 -
Qt显示WAV音频文件的波形图/频谱图
还有Bug…原创 2020-12-04 15:58:48 · 8741 阅读 · 7 评论 -
Qt操作Excel类
#.h#ifndef QEXCEL_H #define QEXCEL_H #include <QString> #include <QVariant> class QAxObject;class ExcelEngine final : public QObject{public: ExcelEngine(QString strPath, QObject *parent = 0); ~ExcelEngine();public: /*******原创 2020-05-13 08:54:34 · 713 阅读 · 1 评论 -
Qt操作Word类
基于https://blog.youkuaiyun.com/qq_35192280/article/details/83021975进行小调整.h#ifndef WORDENGINE_H#define WORDENGINE_H#include "corelib_global.h"#include <QObject>#include <QAxObject>#include <QAxWidget>//#include <QThread>// https原创 2020-05-13 08:52:38 · 1487 阅读 · 0 评论 -
Qt Socket多线程编程出现的问题
http://blog.sina.com.cn/s/blog_640531380102y5rl.htmlQTcpSocket不能跨线程访问比如说我在子线程的构造函数对其成员QTcpSocket进行了实例化,然后在其run()函数中进行操作;运行时一般会出现如下信息:QObject: Cannot create children for a parent that is in a dif...转载 2019-12-30 14:51:46 · 2098 阅读 · 0 评论 -
Qt 对Excel的操作封装
.proQT += axcontainer#ifndef ADVANCEEXCEL_H#define ADVANCEEXCEL_H#include <QString>#include <QVariant>#include "excitingexcel_global.h"class QAxObject;class EXCITINGEXCE...原创 2019-08-26 10:21:32 · 727 阅读 · 0 评论 -
Qt5.12.3+VS2017编译的Oracle32+64位驱动
Qt5.12.3+VS2017编译的Oracle32+64位驱动解压后,32,64位最终文件分别复制至:D:\Install\Qt5.12.3\5.12.3\msvc2017\plugins\sqldriversD:\Install\Qt5.12.3\5.12.3\msvc2017_64\plugins\sqldrivers测试均通过#include <QtCore/QCoreA...原创 2019-06-27 15:08:11 · 859 阅读 · 0 评论 -
QML与c++交互学习笔记
出处:https://blog.youkuaiyun.com/lvliang2008/article/details/6307362进行再排版处理关于导出C++的学习本文档 是公司同事黄工所写QML与c++交互学习笔记(一)说明,主要是对QT的文档内例子进行的一些分别解说,希望更容易的理解C++导出到QML的过程。1.导出一个简单的类Person2.具体导出过程假设我们要导出一个Pers...转载 2019-06-14 09:28:36 · 415 阅读 · 0 评论 -
Qt写C++调用Python遇到的坑
1.#include <Python.h>报错\python\python37-32\include\object.h(448): error C2059: 语法错误:“;”\python\python37-32\include\object.h(448): error C2238: 意外的标记位于“;”之前原因: Python 和 Qt 的关键词 slots 冲突解决:#p...原创 2019-05-15 11:04:27 · 3077 阅读 · 11 评论 -
Ubuntu18系统qt生成程序无法双击运行问题
Ubuntu18系统qt生成程序无法双击运行问题1.Ubuntu18 安装qt编译生成的程序文件类型为application/x-sharedlib,无法双击直接运行。文件类型应该为 x-executable 。2.解决方法在.pro文件中添加下面内容后,删除以前编译文件,重新编译,生成执行文件。QMAKE_LFLAGS += -no-pie参考:https://stack...转载 2019-05-05 11:26:07 · 3138 阅读 · 2 评论 -
C++修改QML内容 基础
C++修改QML内容 QMLimport QtQuick 2.7import QtQuick.Controls 2.0import QtQuick.Layouts 1.0Window { id: mainWindow objectName: "mainWindow" visible: true width: 800 height: 800...原创 2018-05-14 14:40:57 · 1938 阅读 · 3 评论 -
log4cplus 在VS与Qt的基础使用
使用方法见: http://blog.51cto.com/pyhcx/143549准备工作:—— 下载: log4cplus-1.2.1-rc2.7z https://sourceforge.net/projects/log4cplus/ (Last Update: 2017-07-11)—— 解压, 用VS2015打开 D:\code\Third\log4cplus-1.2原创 2017-12-07 19:33:03 · 2417 阅读 · 0 评论 -
QT自定义界面纯QSS
作者: http://download.youkuaiyun.com/user/feiyangqingyunhttp://my.youkuaiyun.com/feiyangqingyun等下载地址: http://download.youkuaiyun.com/detail/feiyangqingyun/8277395源码: https://github.com/wzguo/QUI原创 2017-05-24 15:06:24 · 3297 阅读 · 0 评论 -
Qt QSS 风格
使用: QFile file(“://style”); if(file.open(QIODevice::ReadOnly)) { QString styleSheet = QLatin1String(file.readAll()); qApp->setStyleSheet(styleSheet); } file.close(); QPushstyle.qss文件:B原创 2017-03-30 10:38:56 · 2604 阅读 · 0 评论 -
Qt qml ListView 鼠标点击高亮,缩放等基础设置
import QtQuick 2.0import QtQuick.Controls 2.0 Rectangle { id: mainrec property int widthx: 170 property int heightx:800 width: widthx; height: heightx color: "lightgray"原创 2016-08-03 00:40:16 · 5785 阅读 · 2 评论 -
Combining Qt Widgets and QML with QWidget::createWindowContainer()
http://www.ics.com/blog/combining-qt-widgets-and-qml-qwidgetcreatewindowcontainer Wednesday, August 7, 2013IntroductionQt 5.1 introduces a new method in the QWi转载 2015-02-05 15:33:44 · 3555 阅读 · 0 评论 -
Qt 翻译 多国语言 本地化。。。Step by Step
国际化!!!!!创建一个空白的Qt工程添加一个main.cpp#include #include #include #include int main(int argc, char *argv[]){QApplication a(argc, argv)QWidget* pWnd = new QWidget();QPushButton* pBt原创 2015-01-29 01:40:56 · 1341 阅读 · 0 评论