Qt5.9界面设计中控件的文字显示不完全解决方案
Qt5.9界面设计中控件的文字显示不完全解决方案出现的问题设计的界面运行后的界面解决方案在main.cpp中添加代码运行后的界面
出现的问题
设计的界面
运行后的界面
解决方案
在main.cpp中添加代码
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
添加后如下:
#include "widget.h"
#include <QApplication>
int main(int argc, char *argv[
原创
2020-10-13 18:48:41 ·
3033 阅读 ·
0 评论