QT
fenhong91
学无止境
展开
-
QT快捷键
QT快捷键转载 2023-03-22 10:31:19 · 1597 阅读 · 0 评论 -
QT [release/qrc_image.cpp] error 1
解决方法:右键点击.qrc文件,点击open in editor后出现的红色就误删遗留下来的问题,删掉重新编译原创 2021-06-18 17:28:35 · 1686 阅读 · 0 评论 -
QT The inferior stopped because it received a signal from the operating system.
这个错误说明程序中有野指针。遇到两次问题:1.在MainWindow::MainWindow(QWidget *parent) :QMainWindow(parent)函数中:先运行了函数emit checkPorts();然后才定义Timer_Label = new QTimer(this);解决:Timer_Label = new QTimer(this) emit checkPorts();先定义,后运行即可。2.使用QMenu *m_menu =...原创 2021-06-15 14:41:09 · 1010 阅读 · 0 评论 -
QT QLabel颜色设置
QLabel边框颜色1.UI中修改,进入changeStyleSheetQLabel{border-width: 1px;border-style: solid;border-color:rgb(255, 170, 0);}原创 2021-06-09 19:30:11 · 2300 阅读 · 0 评论 -
QComboBox下拉框
/* 未下拉时,QComboBox的样式 */QComboBox { border: 1px solid gray; /* 边框 */ border-radius: 3px; /* 圆角 */ padding: 1px 18px 1px 3px; /* 字体填衬 */ color: #000; font: normal normal 15px "Microsoft YaHei"; background: transparent;}/* 下拉...转载 2021-06-09 19:11:39 · 1398 阅读 · 0 评论 -
qt 样式表
QT样式表参考CSS层叠样式表设计,不同之处在于QT样式表应用于Widget世界。可以使用QApplication::setStyleSheet()函数设置到整个应用程序上,也可以使用QWidget::setStyleSheet()设置到某一个部件以及子部件上。如果在不同的级别都设置了样式表,QT会使用所有有效的样式表,称为样式表的层叠。this->setStyleSheet("QpushButton{background:yellow}QSlider{background:blue}");转载 2021-06-09 18:19:04 · 483 阅读 · 0 评论 -
QT mainwindow.ui生成.h文件
1.打开工具:原创 2021-06-09 16:25:03 · 2130 阅读 · 0 评论