随笔分类 -  Qt

上一页 1 ··· 9 10 11 12 13 14 下一页
摘要:日志: “TeslaManage.exe”(Win32): 已加载“F:\OpenScenceGraphProject\OSG_QT_2019\x64\Debug\TeslaManage.exe”。已加载符号。“TeslaManage.exe”(Win32): 已加载“C:\Windows\Syst 阅读全文
posted @ 2019-07-19 10:08 西北逍遥 阅读(2448) 评论(0) 推荐(0)
摘要:/******************************************************************************** ** Form generated from reading UI file 'qt_chart1.ui' ** ** Created by: Qt User Interface Compiler version 5.12.2 *... 阅读全文
posted @ 2019-07-18 13:24 西北逍遥 阅读(1021) 评论(0) 推荐(0)
摘要:KDChart 甘特图在Qt中的加载使用案例,代码来自官方 mainwindow.h entrydialog.h entrydelegate.h main.cpp ui_mainwindow.h ui_entrydialog.h legend_example.pro 运行效果: QWindowsWi 阅读全文
posted @ 2019-07-17 19:37 西北逍遥 阅读(3390) 评论(0) 推荐(0)
摘要:最近开发中需要用到甘特图,感觉KDChart这个插件不错,在这里记录一下编译过程(其实很好编译,而且一次性就过了) 下载,kdchart-2.6.1-source,解压 打开src目录,用Qt Creator打开src.pro 我用的是msvc_2015_64编译,分别用debug模式和releas 阅读全文
posted @ 2019-07-17 19:19 西北逍遥 阅读(2503) 评论(0) 推荐(0)
摘要:void TeslaManage::OnlineTreeViewDoubleClick(const QModelIndex & index) { int row = index.row(); qDebug() index(0, 0).child(row, 0).data().toString(); if (root != NULL) { osg... 阅读全文
posted @ 2019-07-15 18:13 西北逍遥 阅读(7376) 评论(0) 推荐(0)
摘要:osg::Node* TeslaManage::findOsgNodeByName(QString &nodeNme) { osg::Node* findNode = NULL; std::vector::iterator vec_iter; for (vec_iter = allOsgNode.begin();vec_iter != allOsgNode.end()... 阅读全文
posted @ 2019-07-14 18:15 西北逍遥 阅读(732) 评论(0) 推荐(0)
摘要:void Test::printOsgGroup(osg::ref_ptr &groupParam) { qDebug() getNumChildren(); //std::cout getNumChildren() getNumChildren(); k++) { osg::ref_ptr group_index = groupParam->getC... 阅读全文
posted @ 2019-07-14 10:18 西北逍遥 阅读(614) 评论(0) 推荐(0)
摘要:VCNodeMatrix.h VCNodeMatrix.cpp 阅读全文
posted @ 2019-06-24 17:55 西北逍遥 阅读(1400) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2019-06-23 21:20 西北逍遥 阅读(571) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2019-06-23 20:16 西北逍遥 阅读(1039) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2019-06-22 21:39 西北逍遥 阅读(315) 评论(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) ... 阅读全文
posted @ 2019-06-21 07:57 西北逍遥 阅读(6537) 评论(0) 推荐(0)
摘要:emit toLine(lineQStr);connect(vcthread, SIGNAL(toLine(QString)), this, SLOT(appendText(QString))); 阅读全文
posted @ 2019-06-18 21:43 西北逍遥 阅读(2227) 评论(0) 推荐(0)
摘要:/******************************************************************************** ** Form generated from reading UI file 'Qt_img.ui' ** ** Created by: Qt User Interface Compiler version 5.12.2 ** ** ... 阅读全文
posted @ 2019-06-18 08:08 西北逍遥 阅读(573) 评论(0) 推荐(0)
摘要:QPainter p(this); QPixmap pixmap; pixmap.load("E:\\参考文件\\image\\1.jpg"); //QPixmap->QImage QImage tempImage = pixmap.toImage(); p.drawImage(0,0,tempIm 阅读全文
posted @ 2019-06-17 20:54 西北逍遥 阅读(5773) 评论(0) 推荐(0)
摘要:std::string cstr;QString qstring; //QString str1 = " D:\\参考手册\\BIM\\osg\\build1.OSGB"; //从std::string 到QString qstring = QString(QString::fromLocal8Bi 阅读全文
posted @ 2019-06-17 16:19 西北逍遥 阅读(3925) 评论(0) 推荐(0)
摘要:graphicswindowqt.h graphicswindowqt.cpp vcqtosgwidget.h vcqtosgwidget.cpp main.cpp 阅读全文
posted @ 2019-06-16 20:11 西北逍遥 阅读(1857) 评论(0) 推荐(0)
摘要:osgViewer::Viewer* _viewer = nullptr; _viewer = new osgViewer::Viewer;osg::ref_ptr<osg::Group> root = new osg::Group;//注意:这两句话的先后顺序 先添加模型在添加相机//root-> 阅读全文
posted @ 2019-06-15 20:27 西北逍遥 阅读(1330) 评论(0) 推荐(0)
摘要:#include <iostream>#include <algorithm>#include <deque>#include <vector>#include <functional>#include <iterator> using namespace std; int main(){ dequ 阅读全文
posted @ 2019-06-12 21:15 西北逍遥 阅读(205) 评论(0) 推荐(0)
摘要:public slots: //打开Pts文件按钮点击事件 void OnOpenFileButtonClick(); //分析按钮点击事件 void OnAnalysisButtonClick(); //保存按钮点击事件 void OnSaveButtonClock(); //连接按钮点击事件 v 阅读全文
posted @ 2019-06-02 18:52 西北逍遥 阅读(282) 评论(0) 推荐(0)

上一页 1 ··· 9 10 11 12 13 14 下一页