摘要:相关资料:不记得是在哪里看到的了,不好意思了原作者。 .pro 1 QT += core gui 2 3 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 4 5 CONFIG += c++11 6 7 # The following define ma
阅读全文
摘要:相关资料: https://blog.csdn.net/u012635648/article/details/89504115 https://blog.csdn.net/qq_28171461/article/details/90518324 .pro 1 QT += core gui 2 QT
阅读全文
摘要:PS:需要在工程文件.pro中增加xml .pro QT += core xml QT -= gui TARGET = xmltest CONFIG += console CONFIG -= app_bundle TEMPLATE = app SOURCES += main.cpp View Cod
阅读全文
摘要:相关资料: https://blog.csdn.net/itas109/article/details/83829396 https://blog.csdn.net/birenxiaofeigg/article/details/104129207 https://www.cnblogs.com/zh
阅读全文
摘要:相关资料: https://www.cnblogs.com/lvdongjie/p/3758025.html 问题情况: 在单位做一个和OSG相关的界面程序,主程序使用了showFullScreen函数,发现子容器(QWidget)里的ComboBox的下拉框无法显示。在百度上搜索了一下,发现Com
阅读全文
摘要:相关资料: https://blog.csdn.net/u014783974/article/details/81486491 main.cpp 1 #include "mainwindow.h" 2 3 #include <QApplication> 4 5 int main(int argc,
阅读全文
摘要:相关资料: https://blog.csdn.net/kidults/article/details/80195524 main.cpp 1 #include "mainwindow.h" 2 3 #include <QApplication> 4 5 int main(int argc, cha
阅读全文
摘要:一、paintEvent法(平时没事,用在OSG中就不行了,因为TMD会一直调paintEvent事件,刷新到卡爆) main.cpp 1 #include "mainwindow.h" 2 3 #include <QApplication> 4 5 int main(int argc, char
阅读全文
摘要:main.cpp 1 #include "mainwindow.h" 2 3 #include <QApplication> 4 5 int main(int argc, char *argv[]) 6 { 7 QApplication a(argc, argv); 8 MainWindow w;
阅读全文
摘要:main.cpp 1 #include "mainwindow.h" 2 3 #include <QApplication> 4 5 int main(int argc, char *argv[]) 6 { 7 QApplication a(argc, argv); 8 MainWindow w;
阅读全文
摘要:https://www.cnblogs.com/cnajian/archive/2011/10/27/2226262.html 有关许多接口,会需要通过xml进行数据交换,弄个例子,方便参考 unit Unit1; interface uses Windows, Messages, SysUtils
阅读全文
摘要:QT使用libQGLViewer及lib3dslibQGLViewer官方下载:http://libqglviewer.com/●打开官方网址,点“Download”。●勾选“I agree with the terms of the GNU GPL license and I understand
阅读全文
摘要:rundll32 user32.dll,LockWorkStation
阅读全文
摘要:相关资料:VS设置方法:https://blog.csdn.net/liukang325/article/details/78584625QT设置方法:https://www.zhihu.com/question/52165737 问题情况:自己生成了一个OSG的osgQOpenGL.lib库文件,
阅读全文
摘要:问题情况:在做OsgEarth时需要自己编译osgQOpenGL,自己做了一个静态库工程,输出lib文件后,让EXE调用。在测试代码中指定一个地球文件,运行后,界面显示的是一个黑边白圆。打开GONFIG += console后,提示“error reading file e:\1.jpg file
阅读全文
摘要:问题情况:在做OsgEarth时需要自己编译osgQOpenGL,自己做了一个静态库工程,输出lib文件后,让EXE让用。在测试代码中指定一个地球文件,加载时提示0X00000005。打开GONFIG += console后,提示“error reading file simple.earth fi
阅读全文