随笔分类 -  C++

上一页 1 2 3 4 5 6 7 8 ··· 33 下一页
摘要:QOAuth1 #include <QOAuth1> Public Functions QOAuth1(QObject *parent = nullptr) QOAuth1(QNetworkAccessManager *manager, QObject *parent = nullptr) QOAu 阅读全文
posted @ 2023-07-02 19:30 西北逍遥 阅读(32) 评论(0) 推荐(0)
摘要:QUuid #include <QUuid> Public Types enum StringFormat { WithBraces, WithoutBraces, Id128 } enum Variant { VarUnknown, NCS, DCE, Microsoft, Reserved } 阅读全文
posted @ 2023-06-30 21:35 西北逍遥 阅读(330) 评论(0) 推荐(0)
摘要:QVideoFrame #include <QVideoFrame> Public Types enum FieldType { ProgressiveFrame, TopField, BottomField, InterlacedFrame } enum PixelFormat { Format_ 阅读全文
posted @ 2023-06-29 20:55 西北逍遥 阅读(780) 评论(0) 推荐(0)
摘要:QVoice #include <QVoice> Public Types enum Age { Child, Teenager, Adult, Senior, Other } enum Gender { Male, Female, Unknown } Public Functions QVoice 阅读全文
posted @ 2023-06-28 20:32 西北逍遥 阅读(62) 评论(0) 推荐(0)
摘要:QVulkanWindow #include <QVulkanWindow> Public Functions QVulkanWindow(QWindow *parent = nullptr) virtual ~QVulkanWindow() int availablePhysicalDevices 阅读全文
posted @ 2023-06-27 21:32 西北逍遥 阅读(211) 评论(0) 推荐(0)
摘要:QDateTime #include <QDateTime> Public Functions QDateTime() QDateTime(const QDate &date) QDateTime(const QDate &date, const QTime &time, Qt::TimeSpec  阅读全文
posted @ 2023-06-22 19:46 西北逍遥 阅读(420) 评论(0) 推荐(0)
摘要:QCamera #include <QCamera> Public Types class FrameRateRange enum CaptureMode { CaptureViewfinder, CaptureStillImage, CaptureVideo } flags CaptureMode 阅读全文
posted @ 2023-06-21 20:10 西北逍遥 阅读(62) 评论(0) 推荐(0)
摘要:QException #include <QException> Public Functions virtual ~QException() virtual QException * clone() const virtual void raise() const Detailed Descrip 阅读全文
posted @ 2023-06-20 19:47 西北逍遥 阅读(460) 评论(0) 推荐(0)
摘要:QGLWidget #include <QGLWidget> Public Functions QGLWidget(QWidget *parent = nullptr, const QGLWidget *shareWidget = nullptr, Qt::WindowFlags f = ...) 阅读全文
posted @ 2023-06-19 20:27 西北逍遥 阅读(85) 评论(0) 推荐(0)
摘要:QGeoPolygon #include <QGeoPolygon> Public Functions QGeoPolygon() QGeoPolygon(const QList<QGeoCoordinate> &path) QGeoPolygon(const QGeoPolygon &other) 阅读全文
posted @ 2023-06-18 20:03 西北逍遥 阅读(41) 评论(0) 推荐(0)
摘要:#include <SoftwareSerial.h> int point_id1 = 4; int point_id2 = 9; int point_id3 = 3; int point_id4 = 10; void setup() { // put your setup code here, t 阅读全文
posted @ 2023-06-15 21:57 西北逍遥 阅读(14) 评论(0) 推荐(0)
摘要:int led=13; void setup() { // put your setup code here, to run once: pinMode(led,OUTPUT); } void loop() { // put your main code here, to run repeatedl 阅读全文
posted @ 2023-06-10 18:57 西北逍遥 阅读(75) 评论(0) 推荐(0)
摘要:c++实现射线法 点和闭合区域位置关系判断 #include <iostream> #include <vector> struct Point { double x; double y; }; struct Polygon { std::vector<Point> vertices; }; // 阅读全文
posted @ 2023-06-05 13:11 西北逍遥 阅读(176) 评论(0) 推荐(0)
摘要:widget->setStyleSheet("background-color: rgba(255,255,255,0.3);"); #################### 阅读全文
posted @ 2023-06-03 18:52 西北逍遥 阅读(78) 评论(0) 推荐(0)
摘要:Qt执行ping命令 #include <QCoreApplication> #include <QDebug> #include <QProcess> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QStrin 阅读全文
posted @ 2023-04-30 19:42 西北逍遥 阅读(682) 评论(0) 推荐(0)
摘要:在C++中,使用new关键字来创建对象时,与不使用new关键字来创建对象时,会产生以下几个区别: 内存管理:使用new关键字来创建对象时,由编译器来决定分配内存的方式,这样可以更有效地利用内存资源。而不使用new关键字来创建对象时,则需要手动分配内存,可能会浪费一些内存资源。 对象生命周期:使用ne 阅读全文
posted @ 2023-04-29 15:46 西北逍遥 阅读(600) 评论(0) 推荐(0)
摘要:点云数据旋转 #include <iostream> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> #include <pcl/filters/passthrough.h> #include <pcl/visualization/pc 阅读全文
posted @ 2023-04-28 20:41 西北逍遥 阅读(92) 评论(0) 推荐(0)
摘要:在C++中,inline关键字用于建议编译器将函数内联到调用它的地方。内联函数是一种优化技术,可以减少函数调用的开销。当一个函数被声明为内联时,编译器会尝试将函数的代码直接嵌入到每个调用该函数的地方,从而避免了函数调用时产生的额外开销,如保存寄存器、设置栈帧等。 需要注意的是,inline关键字仅仅 阅读全文
posted @ 2023-04-27 16:04 西北逍遥 阅读(48) 评论(0) 推荐(0)
摘要:#include <QtWidgets/QApplication> #include <QtWidgets/QGraphicsScene> #include <QtWidgets/QGraphicsView> #include <QtCore/QPointF> #include <QtCore/QD 阅读全文
posted @ 2023-04-26 19:30 西北逍遥 阅读(22) 评论(0) 推荐(0)
摘要:opencv修改图像像素值 point_cloud_img.at<cv::Vec3b>(row1, col1)[0] = 255; point_cloud_img.at<cv::Vec3b>(row1, col1)[1] = 255; point_cloud_img.at<cv::Vec3b>(ro 阅读全文
posted @ 2023-03-19 21:25 西北逍遥 阅读(64) 评论(0) 推荐(0)

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