02 2020 档案
摘要:没有可用的复制构造函数或复制构造函数声明为“explicit” std::vector<comInfo> vecComInfo; vecComInfo.push_back(comInfo); 在构造函数形参前加上const 社区中找到的例子: comInfo( const comInfo& copy
阅读全文
摘要:Owner 在窗口创建时指定,以后不能更改。“一旦拥有,一直拥有”。 Parent 可以再创建时指定,以后可以更改。“父亲可以是继父”。 下面文字转自:http://www.cnblogs.com/cswuyg/archive/2012/07/09/2582186.html 一、 窗口的Parent
阅读全文
摘要:https://blog.csdn.net/milanleon/article/details/49705763 https://blog.csdn.net/weixin_42189863/article/details/84112555
阅读全文
摘要:图片控件,移动光标,选中效果有延迟; 原因:图片过大,显示位置过小,图片需要压缩处理,导致延迟,预先处理图片,使其与显示的位置一致,问题解决。
阅读全文
摘要:在测试OSG程序时, #include<osgViewer/Viewer> #include<osgDB/ReadFile>int main(){osgViewer::Viewer viewer;viewer.setSceneData(osgDB::readNodeFile("cow.osg"));
阅读全文
摘要:在vector中有三种涉及删除的方法,第一种是vector::clear(),第二种是vector::erase(),第三种是vector::pop_back()。clear用来清空整个vector,同时将size变成0,无返回值;erase通过传入迭代器进行删除,既可以删除单个元素,也可以删除某一
阅读全文
摘要:fstream ifstream ofstream分块读写文件 #include <fstream> #include <algorithm> #include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[])
阅读全文
摘要:Qt属性设置: Qt VS Tools 添加编译器: 1.打开Qt VS Tools 选择Qt Options: 2.点击Add: 3.version name处,填写编译器版本名字, Path填写路径: 4.点击OK, 完成!
阅读全文