随笔分类 - Qt
摘要:日志: “TeslaManage.exe”(Win32): 已加载“F:\OpenScenceGraphProject\OSG_QT_2019\x64\Debug\TeslaManage.exe”。已加载符号。“TeslaManage.exe”(Win32): 已加载“C:\Windows\Syst
阅读全文
摘要:/******************************************************************************** ** Form generated from reading UI file 'qt_chart1.ui' ** ** Created by: Qt User Interface Compiler version 5.12.2 *...
阅读全文
摘要:KDChart 甘特图在Qt中的加载使用案例,代码来自官方 mainwindow.h entrydialog.h entrydelegate.h main.cpp ui_mainwindow.h ui_entrydialog.h legend_example.pro 运行效果: QWindowsWi
阅读全文
摘要:最近开发中需要用到甘特图,感觉KDChart这个插件不错,在这里记录一下编译过程(其实很好编译,而且一次性就过了) 下载,kdchart-2.6.1-source,解压 打开src目录,用Qt Creator打开src.pro 我用的是msvc_2015_64编译,分别用debug模式和releas
阅读全文
摘要:void TeslaManage::OnlineTreeViewDoubleClick(const QModelIndex & index) { int row = index.row(); qDebug() index(0, 0).child(row, 0).data().toString(); if (root != NULL) { osg...
阅读全文
摘要:osg::Node* TeslaManage::findOsgNodeByName(QString &nodeNme) { osg::Node* findNode = NULL; std::vector::iterator vec_iter; for (vec_iter = allOsgNode.begin();vec_iter != allOsgNode.end()...
阅读全文
摘要:void Test::printOsgGroup(osg::ref_ptr &groupParam) { qDebug() getNumChildren(); //std::cout getNumChildren() getNumChildren(); k++) { osg::ref_ptr group_index = groupParam->getC...
阅读全文
摘要:VCNodeMatrix.h VCNodeMatrix.cpp
阅读全文
摘要:osg::ref_ptr OSG_Qt_::operateMatrix() { osg::ref_ptr group = new osg::Group; osg::ref_ptr node1 = osgDB::readNodeFile("D:\\参考手册\\BIM\\osg\\tanker.OSGB"); osg::ref_ptr node2 = osgDB::readN...
阅读全文
摘要:osg::ref_ptr OSG_Qt_::operateMatrix() { osg::ref_ptr group = new osg::Group; osg::ref_ptr node = osgDB::readNodeFile("D:\\参考手册\\BIM\\osg\\tanker.OSGB"); //return node; group->addChild...
阅读全文
摘要:osg::ref_ptr OSG_Qt_::createBox() { osg::ref_ptr osg_geode = new osg::Geode; osg::ref_ptr osg_hints = new osg::TessellationHints; osg::ref_ptr osg_box = new osg::Box(osg::Vec3(0.0, 0.0, 0...
阅读全文
摘要:void vc_widget::keyPressEvent(QKeyEvent *ev) { if (ev->key() == Qt::Key_Up) { qDebug() key() == Qt::Key_Down) { qDebug() key() == Qt::Key_Left) { qDebug() key() == Qt::Key_Right) ...
阅读全文
摘要:emit toLine(lineQStr);connect(vcthread, SIGNAL(toLine(QString)), this, SLOT(appendText(QString)));
阅读全文
摘要:/******************************************************************************** ** Form generated from reading UI file 'Qt_img.ui' ** ** Created by: Qt User Interface Compiler version 5.12.2 ** ** ...
阅读全文
摘要:QPainter p(this); QPixmap pixmap; pixmap.load("E:\\参考文件\\image\\1.jpg"); //QPixmap->QImage QImage tempImage = pixmap.toImage(); p.drawImage(0,0,tempIm
阅读全文
摘要:std::string cstr;QString qstring; //QString str1 = " D:\\参考手册\\BIM\\osg\\build1.OSGB"; //从std::string 到QString qstring = QString(QString::fromLocal8Bi
阅读全文
摘要:graphicswindowqt.h graphicswindowqt.cpp vcqtosgwidget.h vcqtosgwidget.cpp main.cpp
阅读全文
摘要:osgViewer::Viewer* _viewer = nullptr; _viewer = new osgViewer::Viewer;osg::ref_ptr<osg::Group> root = new osg::Group;//注意:这两句话的先后顺序 先添加模型在添加相机//root->
阅读全文
摘要:#include <iostream>#include <algorithm>#include <deque>#include <vector>#include <functional>#include <iterator> using namespace std; int main(){ dequ
阅读全文
摘要:public slots: //打开Pts文件按钮点击事件 void OnOpenFileButtonClick(); //分析按钮点击事件 void OnAnalysisButtonClick(); //保存按钮点击事件 void OnSaveButtonClock(); //连接按钮点击事件 v
阅读全文