
QT
hhdxlc
这个作者很懒,什么都没留下…
展开
-
qtablewidget表格刷新问题
qtablewidget转载 2022-12-06 13:42:02 · 4322 阅读 · 0 评论 -
QString gbk-->utf-8写文件
#include <QString>#include <QFile>#include <QTextStream>#include <QCoreApplication>#include <QTextCodec>#include <QDir>#include <iostream>using namespace std;#include <stdio.h>#include <string&g原创 2022-05-13 15:25:26 · 721 阅读 · 1 评论 -
QFile自动close功能问题分析
boolopen(FILE *fh, QIODevice::OpenMode mode, QFileDevice::FileHandleFlags handleFlags = DontCloseHandle)boolopen(int fd, QIODevice::OpenMode mode, QFileDevice::FileHandleFlags handleFlags = DontCloseHandle)QFile的open函数中,第三个参数QFileDevice::FileHandleF..原创 2022-03-30 08:33:26 · 1789 阅读 · 0 评论 -
QThread: You were not doing so wrong.
https://woboq.com/blog/qthread-you-were-not-doing-so-wrong.html原创 2021-07-20 14:40:50 · 101 阅读 · 0 评论 -
QMessageBox按钮的汉化(QT4.5.3)
经常调用QMessageBox::infomation(.....)来调出信息弹窗,但是弹窗的按钮是不国际化的考虑到弹窗国际化的需求,建议在类内写一个函数来统一处理弹窗按钮国际化的问题,具体如下:int messageBox(QMessageBox::Icon box_icon = QMessageBox::NoIcon, ...原创 2018-08-18 13:50:19 · 455 阅读 · 0 评论