随笔分类 -  Qt

上一页 1 ··· 8 9 10 11 12 13 14 下一页
摘要:void VCAdmin::searchAllUser() { strID_Index = ""; if (NULL == vcManageDatabaseObj) { vc_admin_ui.label_msg->setText(QString::fromLocal8Bit("请连接数据库!")); return; } QSqlQuery query_sql = vcManageDatabase 阅读全文
posted @ 2019-09-25 19:05 西北逍遥 阅读(1794) 评论(0) 推荐(0)
摘要:vs下开发Qt连接mysql程序,开发过程中操作MySQL没有问题,但打包以后安装在别的电脑上发现竟然无法连接MySQL,打包的时候,所需的libmysql.dll等dll文件拷贝到exe同级目录了,发现一直提示driver not load driver not load,最后经过一天的测试,发现 阅读全文
posted @ 2019-09-23 07:28 西北逍遥 阅读(1466) 评论(1) 推荐(0)
摘要:Qt连接数据库,参数设置 阅读全文
posted @ 2019-09-20 18:52 西北逍遥 阅读(970) 评论(0) 推荐(0)
摘要:QMetaType::registerType: Binary compatibility break -- Size mismatch for type 'PtsData' [1025]. Previously registered size 216, now registering size 6 阅读全文
posted @ 2019-09-19 16:05 西北逍遥 阅读(502) 评论(0) 推荐(0)
摘要:QString转int 直接调用toInt()函数 例: QString str("100"); int tmp = str.toInt(); 或者: bool ok; QString str("100"); int tmp = str.toInt(&ok); 注:ok表示转换是否成功,成功则ok为 阅读全文
posted @ 2019-09-18 17:39 西北逍遥 阅读(226) 评论(0) 推荐(0)
摘要:15:16:53: Starting: "/opt/Qt5.12.0/5.12.0/gcc_64/bin/qmake" /home/luo/Desktop/MyFile/QtProject/QQ_Client/QQ_Client.pro -spec linux-g++ CONFIG+=debug C 阅读全文
posted @ 2019-08-25 15:18 西北逍遥 阅读(1371) 评论(0) 推荐(0)
摘要:QDateTime格式化 yyyy-MM-dd hh:mm:ss 阅读全文
posted @ 2019-08-04 22:44 西北逍遥 阅读(575) 评论(0) 推荐(0)
摘要:#include #include QDesktopWidget *qDesktopWidget= QApplication::desktop(); QRect qrect1 = qDesktopWidget->screen(0)->rect(); qDebug() << "width:" << qrect1.width() << " height:" << qrect1.he... 阅读全文
posted @ 2019-08-04 11:06 西北逍遥 阅读(766) 评论(0) 推荐(0)
摘要:PtsData PtsData::copy(const PtsData &ptsData) { PtsData ptsData1; ptsData1.data_b = ptsData.data_b; ptsData1.data_g = ptsData.data_g; ptsData1.data_r = ptsData.data_r; ptsData... 阅读全文
posted @ 2019-08-03 10:45 西北逍遥 阅读(534) 评论(0) 推荐(0)
摘要:The QTableView class provides a default model/view implementation of a table view. More... Header: #include <QTableView> qmake: QT += widgets Inherits 阅读全文
posted @ 2019-07-29 12:46 西北逍遥 阅读(1569) 评论(0) 推荐(0)
摘要:id: 94 name: "项目编号" class: IfcProjectid: 7066 name: "Default" class: IfcSiteid: 104 name: "" class: IfcBuildingid: 119 name: "F1" class: IfcBuildingSt 阅读全文
posted @ 2019-07-28 13:22 西北逍遥 阅读(503) 评论(0) 推荐(0)
摘要:VC3DGraphicsWindowQt::VC3DGraphicsWindowQt(QWidget* parent, Qt::WindowFlags f) { osg::DisplaySettings* ds = osg::DisplaySettings::instance().get(); osg::setNotifyLevel(osg::NotifySeverity::... 阅读全文
posted @ 2019-07-27 23:24 西北逍遥 阅读(615) 评论(0) 推荐(0)
摘要:ViewerWidget* viewerWidget = new ViewerWidget(ifcModel); viewerWidget ->setRootNode(ifcModel->getRootNode()); this->ui.centerDockWidget->setWidget(viewerWidget ); VCIfcTreeWidget* ifcTreeWidget =... 阅读全文
posted @ 2019-07-27 12:28 西北逍遥 阅读(310) 评论(0) 推荐(0)
摘要:ui_ifcproject_20190702.h ifcproject_201907.cpp main.cpp 阅读全文
posted @ 2019-07-27 00:41 西北逍遥 阅读(578) 评论(0) 推荐(0)
摘要:void setRootNode( osg::Group* root ) { m_main_view->setSceneData( root ); if( m_hud_camera ) { root->addChild( m_hud_camera ); } m_system->setRootNode( root ); } 阅读全文
posted @ 2019-07-26 23:52 西北逍遥 阅读(199) 评论(0) 推荐(0)
摘要:void initGLWidgetAndViewer() { osgViewer::ViewerBase::ThreadingModel threadingModel = osgViewer::ViewerBase::SingleThreaded; IfcSystem* m_system->getRootNode()->setCullingActive( false ); ... 阅读全文
posted @ 2019-07-26 13:12 西北逍遥 阅读(328) 评论(0) 推荐(0)
摘要:#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #includ... 阅读全文
posted @ 2019-07-25 19:50 西北逍遥 阅读(1130) 评论(0) 推荐(0)
摘要:void slotLoadRecentIfcFileClicked() { QPushButton* btn_load = (QPushButton*)sender(); if( !btn_load ) { return; } int row = m_combo_recent_files->currentIndex(); ... 阅读全文
posted @ 2019-07-25 09:55 西北逍遥 阅读(332) 评论(0) 推荐(0)
摘要:项目环境变量配置 include E:\Qt\Qt5.12.2\5.12.2\msvc2017_64\include E:\OpenSourceGraph\OpenSceneGraph_install\include E:\IFC\boost_1_66_0_vs2017_20190416 E:\IF 阅读全文
posted @ 2019-07-23 11:38 西北逍遥 阅读(625) 评论(0) 推荐(0)
摘要://顶点着色器 static const char* vertShader = { "varying vec4 color;\n" "void main(void)\n" "{\n" "color = gl_Vertex;\n" "gl_Position=gl_ModelViewProjectionMatrix*gl_Vertex;\n" "}... 阅读全文
posted @ 2019-07-19 10:46 西北逍遥 阅读(476) 评论(0) 推荐(0)

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