随笔分类 - Qt
摘要:void VCAdmin::searchAllUser() { strID_Index = ""; if (NULL == vcManageDatabaseObj) { vc_admin_ui.label_msg->setText(QString::fromLocal8Bit("请连接数据库!")); return; } QSqlQuery query_sql = vcManageDatabase
阅读全文
摘要:vs下开发Qt连接mysql程序,开发过程中操作MySQL没有问题,但打包以后安装在别的电脑上发现竟然无法连接MySQL,打包的时候,所需的libmysql.dll等dll文件拷贝到exe同级目录了,发现一直提示driver not load driver not load,最后经过一天的测试,发现
阅读全文
摘要:QMetaType::registerType: Binary compatibility break -- Size mismatch for type 'PtsData' [1025]. Previously registered size 216, now registering size 6
阅读全文
摘要:QString转int 直接调用toInt()函数 例: QString str("100"); int tmp = str.toInt(); 或者: bool ok; QString str("100"); int tmp = str.toInt(&ok); 注:ok表示转换是否成功,成功则ok为
阅读全文
摘要: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
阅读全文
摘要:QDateTime格式化 yyyy-MM-dd hh:mm:ss
阅读全文
摘要:#include #include QDesktopWidget *qDesktopWidget= QApplication::desktop(); QRect qrect1 = qDesktopWidget->screen(0)->rect(); qDebug() << "width:" << qrect1.width() << " height:" << qrect1.he...
阅读全文
摘要: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...
阅读全文
摘要:The QTableView class provides a default model/view implementation of a table view. More... Header: #include <QTableView> qmake: QT += widgets Inherits
阅读全文
摘要:id: 94 name: "项目编号" class: IfcProjectid: 7066 name: "Default" class: IfcSiteid: 104 name: "" class: IfcBuildingid: 119 name: "F1" class: IfcBuildingSt
阅读全文
摘要:VC3DGraphicsWindowQt::VC3DGraphicsWindowQt(QWidget* parent, Qt::WindowFlags f) { osg::DisplaySettings* ds = osg::DisplaySettings::instance().get(); osg::setNotifyLevel(osg::NotifySeverity::...
阅读全文
摘要:ViewerWidget* viewerWidget = new ViewerWidget(ifcModel); viewerWidget ->setRootNode(ifcModel->getRootNode()); this->ui.centerDockWidget->setWidget(viewerWidget ); VCIfcTreeWidget* ifcTreeWidget =...
阅读全文
摘要:ui_ifcproject_20190702.h ifcproject_201907.cpp main.cpp
阅读全文
摘要:void setRootNode( osg::Group* root ) { m_main_view->setSceneData( root ); if( m_hud_camera ) { root->addChild( m_hud_camera ); } m_system->setRootNode( root ); }
阅读全文
摘要:void initGLWidgetAndViewer() { osgViewer::ViewerBase::ThreadingModel threadingModel = osgViewer::ViewerBase::SingleThreaded; IfcSystem* m_system->getRootNode()->setCullingActive( false ); ...
阅读全文
摘要:#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #includ...
阅读全文
摘要:void slotLoadRecentIfcFileClicked() { QPushButton* btn_load = (QPushButton*)sender(); if( !btn_load ) { return; } int row = m_combo_recent_files->currentIndex(); ...
阅读全文
摘要:项目环境变量配置 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
阅读全文
摘要://顶点着色器 static const char* vertShader = { "varying vec4 color;\n" "void main(void)\n" "{\n" "color = gl_Vertex;\n" "gl_Position=gl_ModelViewProjectionMatrix*gl_Vertex;\n" "}...
阅读全文