- 博客(1)
- 资源 (1)
- 问答 (1)
- 收藏
- 关注
原创 Qt 在QSS中设置 QTabWidget背景(透明)
/********************************2018.08.13 CaoYufeng***QTabWidget背景设置*****************************//* QTabWidget源码中底层有个panelRect区域 初始化时:panelRect区域被画成了白色 所以这里需要设置属性,让panelRect重画,但这里应该是类似于repa...
2018-08-13 10:20:49
18842
1
QCustomPlot freeglut-3.4.0 freeglut-MSVC-3.0.0-2
使用QCustomPlot绘图,使能OpenGl模式,导致编译不通过;
需要依赖freeglut库;
使用vs编译器的可以解压 freeglut-MSVC-3.0.0-2 ,使用编译好的库;
或者用freeglut-3.4.0源码自己编译;
添加头文件
#include "qcustomplot.h"
#include <GL/freeglut.h>
.pro中增加宏定义
DEFINES += QCUSTOMPLOT_USE_OPENGL
在代码中使能
ui->customPlot->setOpenGl(true);
2023-02-18
Qt Creator QSpinbox值乱码
2021-12-30
TA创建的收藏夹 TA关注的收藏夹
TA关注的人