随笔分类 -  Qt

上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
摘要:pyqt播放音频 from PyQt5.QtCore import QUrl from PyQt5.QtMultimedia import QMediaPlayer from PyQt5.QtWidgets import QApplication import sys app = QApplicat 阅读全文
posted @ 2023-03-31 06:06 西北逍遥 阅读(118) 评论(0) 推荐(0)
摘要:pyqt时间格式化 from PyQt5.QtCore import QDateTime currentDateTime = QDateTime.currentDateTime() print(currentDateTime.toString("yyyy-MM-dd hh:mm:ss")) #### 阅读全文
posted @ 2023-03-29 14:42 西北逍遥 阅读(92) 评论(0) 推荐(0)
摘要:QMap #include <QMap> Public Functions QMap() QMap(std::initializer_list<std::pair<Key, T> > list) QMap(const QMap<Key, T> &other) QMap(QMap<Key, T> && 阅读全文
posted @ 2023-03-03 16:17 西北逍遥 阅读(357) 评论(0) 推荐(0)
摘要:QQuickStyle QQuickStyle类用来配置应用程序样式 Header: #include <QQuickStyle> Since: Qt 5.7 List of all members, including inherited members Static Public Members 阅读全文
posted @ 2023-03-01 14:49 西北逍遥 阅读(174) 评论(0) 推荐(0)
摘要:Qt遍历目录下的文件 QList<QString> getAllPCDFileName(QString dirPath) { QList<QString> list1; QDir dir1(dirPath); dir1.setFilter(QDir::Files | QDir::Hidden | Q 阅读全文
posted @ 2023-02-24 19:05 西北逍遥 阅读(211) 评论(0) 推荐(0)
摘要:QDateEdit *dateEdit_date_morning;dateEdit_date_morning = new QDateEdit(centralWidget);dateEdit_date_morning->setObjectName(QStringLiteral("dateEdit_da 阅读全文
posted @ 2023-02-05 10:50 西北逍遥 阅读(120) 评论(0) 推荐(0)
摘要:QAbstractSocket #include <QAbstractSocket> Public Types enum BindFlag { ShareAddress, DontShareAddress, ReuseAddressHint, DefaultForPlatform } flags B 阅读全文
posted @ 2023-01-10 18:57 西北逍遥 阅读(153) 评论(0) 推荐(0)
摘要:QBEInteger #include <QBEInteger> Public Functions QBEInteger(T value) T operator T() const bool operator!=(QBEInteger<T> other) const QBEInteger<T> & 阅读全文
posted @ 2023-01-09 08:31 西北逍遥 阅读(72) 评论(0) 推荐(0)
摘要:Qt线程测试 #include "vcmainthread.h" VCMainThread::VCMainThread(QWidget *parent) : QMainWindow(parent) { ui.setupUi(this); videoThread1 = new VideoThread( 阅读全文
posted @ 2023-01-04 16:37 西北逍遥 阅读(39) 评论(0) 推荐(0)
摘要:QFont Header: #include <QFont> Public Types enum Capitalization { MixedCase, AllUppercase, AllLowercase, SmallCaps, Capitalize } enum HintingPreferenc 阅读全文
posted @ 2023-01-03 08:44 西北逍遥 阅读(313) 评论(0) 推荐(0)
摘要:QPixmap QImage void ScrollBox::setThumbnail(QPixmap img) { QPixmap bkPixmap = img.fromImage(img.toImage().scaled(size(), Qt::IgnoreAspectRatio, Qt::Sm 阅读全文
posted @ 2023-01-02 14:55 西北逍遥 阅读(44) 评论(0) 推荐(0)
摘要:实验数据3 打开:G:/PCL_data/2022082601/20220826124637_16_c.jpg 开始加载点云文件 2022-12-29 19:52:27.050 完成加载点云文件 2022-12-29 19:53:21.687 x:277 y:243 x:1041 y:232 x:1 阅读全文
posted @ 2022-12-30 15:00 西北逍遥 阅读(30) 评论(0) 推荐(0)
摘要:// 浅拷贝 QImage(uchar * data, int width, int height, Format format) // 浅拷贝 QImage(const uchar * data, int width, int height, Format format) // 浅拷贝 QImag 阅读全文
posted @ 2022-12-23 21:29 西北逍遥 阅读(303) 评论(0) 推荐(0)
摘要:QImage 是用于读写绘制图像的基本类库,显示图像,我们借助于QImage,重点是如何通过图像二维数组(或三维数组)构造一个QImage对象。 以下来至于QImage构造函数QImage::QImage(uchar *data, int width, int height, QImage::For 阅读全文
posted @ 2022-12-23 21:25 西北逍遥 阅读(1153) 评论(0) 推荐(0)
摘要:QBuffer #include <QBuffer> Public Functions QBuffer(QObject *parent = nullptr) QBuffer(QByteArray *byteArray, QObject *parent = nullptr) virtual ~QBuf 阅读全文
posted @ 2022-12-15 15:21 西北逍遥 阅读(100) 评论(0) 推荐(0)
摘要:QChar #include <QChar> Public Types enum Category { Mark_NonSpacing, Mark_SpacingCombining, Mark_Enclosing, Number_DecimalDigit, ..., Symbol_Other } e 阅读全文
posted @ 2022-12-14 12:17 西北逍遥 阅读(60) 评论(0) 推荐(0)
摘要:冒泡排序 QList<int> Qt_2022121201::sortList(QList<int> list_param) { for (int k = 0; k < list_param.size()-1;k++) { for (int j = 0; j < list_param.size() 阅读全文
posted @ 2022-12-13 12:48 西北逍遥 阅读(30) 评论(0) 推荐(0)
摘要:#include <QFont> Public Types enum Capitalization { MixedCase, AllUppercase, AllLowercase, SmallCaps, Capitalize } enum HintingPreference { PreferDefa 阅读全文
posted @ 2022-12-12 12:44 西北逍遥 阅读(266) 评论(0) 推荐(0)
摘要:pyqt5绘制坐标系 def paintEvent(self, event): painter = QPainter() painter.begin(self) # 绘制图像 image = self.pix if image.width()>0: rect = QRect(0, 0, image. 阅读全文
posted @ 2022-11-24 20:23 西北逍遥 阅读(228) 评论(0) 推荐(0)
摘要:QString char* QString musicStr = "D:/12.mp3|";musicStr.toLatin1().data() ############ 阅读全文
posted @ 2022-10-11 17:21 西北逍遥 阅读(27) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 ··· 14 下一页