摘要:相关资料: 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;
阅读全文
摘要:QT使用libQGLViewer及lib3dslibQGLViewer官方下载:http://libqglviewer.com/●打开官方网址,点“Download”。●勾选“I agree with the terms of the GNU GPL license and I understand
阅读全文
摘要:相关资料:VS设置方法:https://blog.csdn.net/liukang325/article/details/78584625QT设置方法:https://www.zhihu.com/question/52165737 问题情况:自己生成了一个OSG的osgQOpenGL.lib库文件,
阅读全文
摘要:相关资料: https://blog.csdn.net/u014453443/article/details/91975453 问题情况: the code model could not parse an included file,which might lead to incorrect co
阅读全文
摘要:相关资料: https://blog.csdn.net/so_do_it/article/details/91420198 5.0 -> 97 6.0 -> 98 7.0 -> 2002 7.1 -> 2003 8.0 -> 2005 9.0 -> 2008 10.0 -> 2010 11.0 ->
阅读全文
摘要:相关资料: https://blog.csdn.net/lzs2327/article/details/60961025 PS:本人测试过Debug、Release都可以自动搜到dll文件,很方便,很好用。 1.首先编译一个release版本(Debug也行,不过后面的命令参数也要是Debug),然
阅读全文
摘要:相关资料: https://blog.csdn.net/sunboyhch/article/details/8846039 // 方法一: void MainWindow::on_pushButton_clicked() { QString path = QProcessEnvironment::s
阅读全文
摘要:问题说明: 在处理一个OSG的时候,发现如果窗体是4:3初始化后就是正常的比例。如果把窗体改为1000:500时就发现生成的内容变形了。 问题原因: 应该是初始化OSG时有什么参数吧,我占时没有找到,有找到的可以教我一下,多谢了。 问题处理: 我只能使用最笨的方法,先把显示控件的比例固定为4:3,初
阅读全文
摘要:相关资料: https://blog.csdn.net/bladeandmaster88/article/details/54748192 问题: 我们在新建一个“Qt Console Application”时使用printf输出字符是可以显在出来的,但是我们在新建一个"Qt Widgets Ap
阅读全文
摘要:相关资料: https://blog.csdn.net/qq_18649781/article/details/89452179 https://www.cnblogs.com/yangjunhe460/p/10711663.html https://blog.csdn.net/rl529014/a
阅读全文
摘要:相关资源: https://blog.csdn.net/qq_20553613/article/details/78774476 char*与QString互转 https://blog.csdn.net/weixin_42542969/article/details/88545538 qt字符串与
阅读全文
摘要:.h 1 #ifndef MAINWINDOW_H 2 #define MAINWINDOW_H 3 4 #include <QMainWindow> 5 #include <QWebEngineView> 6 #include "qlayout.h" 7 #include "qpushbutton
阅读全文