1 Star 0 Fork 0

不吃香菜 / qt-serial_port_debug

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mywidget.cpp 446 Bytes
一键复制 编辑 原始数据 按行查看 历史
#include "mywidget.h"
#include "ui_mywidget.h"
myWidget::myWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::myWidget)
{
ui->setupUi(this);
void (QSpinBox::*spinValueChanged)(int) = &QSpinBox::valueChanged;
connect(ui->spinBox,spinValueChanged,ui->horizontalSlider,&QSlider::setValue);
connect(ui->horizontalSlider,&QSlider::valueChanged,ui->spinBox,&QSpinBox::setValue);
}
myWidget::~myWidget()
{
delete ui;
}
C++
1
https://gitee.com/nonnnnnn/qt-serial_port_debug.git
git@gitee.com:nonnnnnn/qt-serial_port_debug.git
nonnnnnn
qt-serial_port_debug
qt-serial_port_debug
master

搜索帮助