随笔分类 -  C++

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 33 下一页
摘要:Qt QSplitter布局 #include <QSplitter> QVBoxLayout *verticalLayoutMain; QSplitter *splitterMain = nullptr; QSplitter *splitterLeft = nullptr; QSplitter * 阅读全文
posted @ 2021-09-09 16:31 西北逍遥 阅读(203) 评论(0) 推荐(0)
摘要:maya图片文件加载过程学习 // // Copyright 2017 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // 阅读全文
posted @ 2021-09-09 12:28 西北逍遥 阅读(53) 评论(0) 推荐(0)
摘要:自己开发一款能够绘制简单三维模型的软件 ####################### 阅读全文
posted @ 2021-09-07 21:27 西北逍遥 阅读(319) 评论(0) 推荐(0)
摘要:Error: Failed to connect database.Driver not loaded Driver not loaded Qt打包好的程序报错:Error: Failed to connect database.Driver not loaded Driver not loaded 阅读全文
posted @ 2021-09-07 13:04 西北逍遥 阅读(648) 评论(0) 推荐(0)
摘要:QTableWidget清空并删除所有行 while (tableWidget->rowCount()>0) { tableWidget->removeRow(0); } ##################################### 阅读全文
posted @ 2021-09-06 16:43 西北逍遥 阅读(1618) 评论(0) 推荐(0)
摘要:SQLite - 判断表是否存在 SELECT count(*) FROM sqlite_master WHERE type="table" AND name = "表名"; 查询的结果 qlite> sqlite> SELECT count(*) FROM sqlite_master WHERE 阅读全文
posted @ 2021-09-05 20:39 西北逍遥 阅读(4454) 评论(0) 推荐(0)
摘要:很久没用过了,今天又用了 QSplitter *splitterMain; QTextEdit *textleft; QSplitter *splitterRight; QTextEdit *textUp; QTextEdit *textBottom; QVBoxLayout *vLayout=ne 阅读全文
posted @ 2021-09-04 17:45 西北逍遥 阅读(65) 评论(0) 推荐(0)
摘要:osg旋转 osg::Matrix matrix_xy_2 = osg::Matrix::translate(-axisPos_xy_2) * osg::Matrix::rotate(quat_xy_2) * osg::Matrix::translate(axisPos_xy_2); ####### 阅读全文
posted @ 2021-09-03 16:00 西北逍遥 阅读(255) 评论(0) 推荐(0)
摘要:看了半天,没看明白是怎么实现的! ReaderWriter::ReadResult readNode(const std::string& fileName,const Options* options, bool buildKdTreeIfRequired=true) { ReaderWriter 阅读全文
posted @ 2021-09-02 21:00 西北逍遥 阅读(74) 评论(0) 推荐(0)
摘要:错误记录 detected OpenGL error 'invalid value' at after stateset.compileGLObjects in GLObjectsVisitor::apply(osg::StateSet& stateset) Scaling image from ( 阅读全文
posted @ 2021-08-25 20:40 西北逍遥 阅读(315) 评论(0) 推荐(0)
摘要:osg绘制圆 自定义圆的半径,然后根据圆的计算公式 X2 +Y2=R2 (圆的标准方程)生成圆周上的每个坐标点 float getY(int x,bool isPositive) { float y = 0.0f; if (isPositive) { y = sqrt((radius*radius) 阅读全文
posted @ 2021-08-19 20:45 西北逍遥 阅读(725) 评论(0) 推荐(0)
摘要:错误日志 1> 已启动全部重新生成: 项目: TB_ExLabelUtils, 配置: Release x64 2> 已启动全部重新生成: 项目: TB_ExamplesCommon, 配置: Release x64 3> 已启动全部重新生成: 项目: TB_ExGImposterPE, 配置: R 阅读全文
posted @ 2021-08-12 16:15 西北逍遥 阅读(256) 评论(0) 推荐(0)
摘要:osg绘制立方体 #include <iostream> #include <osgViewer/Viewer> #include <osg/Node> //#include <osgDB/ReadFile> //#include <osgDB/WriteFile> #include <osgUti 阅读全文
posted @ 2021-08-10 10:33 西北逍遥 阅读(445) 评论(0) 推荐(0)
摘要:morphologyEx void Demo_1(int, void*) { cvtColor(img1, img_gray1, COLOR_BGR2GRAY); //二值化 threshold(img_gray1, img2, 0, 255, THRESH_BINARY | THRESH_OTSU 阅读全文
posted @ 2021-07-03 20:38 西北逍遥 阅读(59) 评论(0) 推荐(0)
摘要:QTime /**************************************************************************** ** ** Copyright (C) 2017 The Qt Company Ltd. ** Copyright (C) 2016 阅读全文
posted @ 2021-06-25 15:28 西北逍遥 阅读(276) 评论(0) 推荐(0)
摘要:FFmpeg从视频中提取音频 #include <iostream> extern "C" { #include <libavutil/log.h> #include <libavformat/avformat.h> } enum class AUDIO_OP_ERRORS { NO_ERROR, 阅读全文
posted @ 2021-06-24 21:25 西北逍遥 阅读(797) 评论(0) 推荐(0)
摘要:Qt 整合SDL2报错 1>qtmaind.lib(qtmain_win.obj) : error LNK2019: 无法解析的外部符号 main,该符号在函数 WinMain 中被引用1>ifctest1.exe : fatal error LNK1120: 1 个无法解析的外部命令 解决方法一: 阅读全文
posted @ 2021-06-24 16:55 西北逍遥 阅读(707) 评论(0) 推荐(0)
摘要:QCryptographicHash Header: #include <QCryptographicHash>qmake: QT += coreSince: Qt 4.3 注意:在5.9之前的Qt版本中,当被要求生成SHA3时,qcryptographicshash实际上计算了Keccak。如果您 阅读全文
posted @ 2021-06-24 10:22 西北逍遥 阅读(509) 评论(6) 推荐(0)
摘要:Qt double float保留两位小数 double p9_d = P9_Value.toDouble(); float p9_f = P9_Value.toFloat(); QString p9_str2 = QString::number(p9_f, 'f', 2); P9_Value = 阅读全文
posted @ 2021-06-23 21:29 西北逍遥 阅读(4001) 评论(0) 推荐(0)
摘要:QVideoWidget类提供了一个小部件,它显示由媒体对象生成的视频。 将QVideoWidget附加到qmediao对象允许它显示该媒体对象的视频或图像输出。QVideoWidget通过在其构造函数中传递指向qmediao对象的指针来连接到媒体对象,并通过销毁QVideoWidget来分离。 p 阅读全文
posted @ 2021-06-23 20:55 西北逍遥 阅读(925) 评论(0) 推荐(0)

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 33 下一页