1 QImage image(m_Pixmap.width(), m_Pixmap.height(), QImage::Format_RGB888); 2 QPainter painter(&image); 3 m_pGraphicsScene->render(&painter); //关键函数 4 ...
                            
                            
                                分类:
Web程序   时间:
2021-02-20 12:42:00   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                数据库类型blob 存: QByteArray byteArry; QPixmap pix; QBuffer buffer(&byteArry); buffer.open(QIODevice::WriteOnly); pix.save(&buffer, "png", 0); 取: QPixmap h ...
                            
                            
                                分类:
数据库   时间:
2021-02-20 12:22:28   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    1 #pragma once 2 3 #include <QtWidgets/QMainWindow> 4 #include "ui_QLogWidget.h" 5 #include <QQueue> 6 #include <QMutex> 7 #include <QWaitCondition> 8 ...
                            
                            
                                分类:
编程语言   时间:
2021-02-17 14:52:00   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    为了提高工作效率,需要一个可以自动生成多份相关联的word文档免去繁琐复制粘贴工作的软件。最后选定使用QT C++做界面和主要逻辑程序设计,对word的操作使用python写好对应的函数,然后在QT中调用自己写好的python函数完成相应的功能。由于这是第一次使用python 也是第一次将pytho ...
                            
                            
                                分类:
编程语言   时间:
2021-02-16 11:55:27   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                The Meta-Object System | Qt Core 6.0.1 https://doc.qt.io/qt-6/metaobjects.html Signals & Slots | Qt Core 6.0.1 https://doc.qt.io/qt-6/signalsandslots. ...
                            
                            
                                分类:
Web程序   时间:
2021-02-15 11:54:10   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    1 QFile fp; //要包含必要的头文件,这里省略 2 QDir(dir); 3 QString path("./"),filename("test.txt"); 4 QDebug qdebug(QtWarningMsg) ; 5 fp.setFileName(path+filename);  ...
                            
                            
                                分类:
其他好文   时间:
2021-02-10 13:16:22   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    具体如下,注意把 D:\Program Files\MVTec\HALCON-18.11-Progress\bin\x64-win64添加到系统path环境变量中,这样就不用每次把halcon的dll文件复制到exe处了。 #引用的Qt模块 QT += core gui #最低版本 greaterT ...
                            
                            
                                分类:
其他好文   时间:
2021-02-10 12:50:45   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    选择Release模式编译执行 找到对应生成的exe文件 将生成的exe文件拷贝到一个空文件夹中 运行Qt自带的Qt_MinGW进入刚刚创建好的带有exe的空文件中 执行 windeployqt 程序名.exe 命令自动复制运行所需的库文件 ...
                            
                            
                                分类:
其他好文   时间:
2021-02-06 12:19:26   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    目录 子目录只能输入英文,想要显示中文,可以修改右下方表中的 text 属性: 工具栏 让工具栏共用 菜单栏的 new 和 open,只需将下方列表的控件,拖拽到工具栏。 ...
                            
                            
                                分类:
其他好文   时间:
2021-02-05 10:52:50   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    https://www.bilibili.com/video/BV1g4411H78N?p=5 main.cpp 文件 #include "mywidget.h" #include <QApplication>// 包含一个应用程序类的头文件 //main程序入口 argc命令行变量的数量 argv ...
                            
                            
                                分类:
其他好文   时间:
2021-02-04 12:09:23   
                                阅读次数:
0