首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • C/C++ Qt TableDelegate 自定义代理组件

    #include "floatspindelegate.h" #include <QDoubleSpinBox> QWFloatSpinDelegate::QWFloatSpinDelegate(QObject *editor = new QDoubleSpinBox(parent); editor->setFrame(false); editor->setMinimum(0); editor QModelIndex &index) const { float value = index.model()->data(index, Qt::EditRole).toFloat(); QDoubleSpinBox *spinBox = static_cast<QDoubleSpinBox*>(editor); spinBox->setValue(value); } // https://www.cnblogs.com *spinBox = static_cast<QDoubleSpinBox*>(editor); spinBox->interpretText(); float value = spinBox

    87520编辑于 2022-12-28
  • 来自专栏AIoT技术交流、分享

    Python Qt GUI设计:QSpinBox计数器类(基础篇—15)

    QSpinBox类和QDoubleSpinBox类均派生自QAbstractSpinBox类。 QSpinBox用于处理整数值,QDoubleSpinBox则用于处理浮点值,它们之间的区别就是处理数据的类型不同,其他功能都基本相同。 QDoubleSpinBox的默认精度是两位小数,但可以通过setDecimals()来改变。

    1.5K30发布于 2021-10-25
  • C/C++ Qt TableDelegate 自定义代理组件

    #include "floatspindelegate.h"#include <QDoubleSpinBox>QWFloatSpinDelegate::QWFloatSpinDelegate(QObject *editor = new QDoubleSpinBox(parent); editor->setFrame(false); editor->setMinimum(0); editor QModelIndex &index) const{ float value = index.model()->data(index, Qt::EditRole).toFloat(); QDoubleSpinBox *spinBox = static_cast<QDoubleSpinBox*>(editor); spinBox->setValue(value);}// https://www.cnblogs.com *spinBox = static_cast<QDoubleSpinBox*>(editor); spinBox->interpretText(); float value = spinBox

    1.2K20编辑于 2022-12-23
  • C++ Qt开发:QItemDelegate自定义代理组件

    *editor = new QDoubleSpinBox(parent); editor->setFrame(false); editor->setMinimum(0); editor QModelIndex &index) const{ float value = index.model()->data(index, Qt::EditRole).toFloat(); QDoubleSpinBox *spinBox = static_cast<QDoubleSpinBox*>(editor); spinBox->setValue(value);}void QWFloatSpinDelegate ::setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const{ QDoubleSpinBox *spinBox = static_cast<QDoubleSpinBox*>(editor); spinBox->interpretText(); float value = spinBox

    2.8K11编辑于 2023-12-20
  • 来自专栏编码视界

    PySide6 GUI 编程(12):QSpinBox的使用

    示例代码from PySide6.QtWidgets import QApplication, QDoubleSpinBox, QMainWindow, QSpinBox, QVBoxLayout, QWidgetdef spin_box_text_changed) my_spin_box.valueChanged.connect(spin_box_value_changed) my_double_spin_box = QDoubleSpinBox

    62842编辑于 2024-07-24
  • 基于yolov8的工程车辆挖掘机叉车卡车检测系统python源码+onnx模型+评估指标曲线+精美GUI界面

    hs_conf") self.hs_conf.valueChanged.connect(self.conf_change) self.dsb_conf = QtWidgets.QDoubleSpinBox ) self.dsb_conf.valueChanged.connect(self.dsb_conf_change) self.dsb_iou = QtWidgets.QDoubleSpinBox

    23710编辑于 2025-07-16
  • 基于mediapipe深度学习算法的手势数字0-9识别系统python源码+精美GUI界面

    hs_conf") self.hs_conf.valueChanged.connect(self.conf_change) self.dsb_conf = QtWidgets.QDoubleSpinBox ) self.dsb_conf.valueChanged.connect(self.dsb_conf_change) self.dsb_iou = QtWidgets.QDoubleSpinBox

    50510编辑于 2025-07-22
  • 基于yolov8的篮球计数检测系统python源码+onnx模型+评估指标曲线+精美GUI界面

    hs_conf") self.hs_conf.valueChanged.connect(self.conf_change) self.dsb_conf = QtWidgets.QDoubleSpinBox ) self.dsb_conf.valueChanged.connect(self.dsb_conf_change) self.dsb_iou = QtWidgets.QDoubleSpinBox

    25410编辑于 2025-07-21
  • 基于yolov8的路面垃圾检测系统python源码+onnx模型+评估指标曲线+精美GUI界面

    hs_conf") self.hs_conf.valueChanged.connect(self.conf_change) self.dsb_conf = QtWidgets.QDoubleSpinBox ) self.dsb_conf.valueChanged.connect(self.dsb_conf_change) self.dsb_iou = QtWidgets.QDoubleSpinBox

    18600编辑于 2025-07-22
  • 基于yolov8的无人机检测系统python源码+onnx模型+评估指标曲线+精美GUI界面

    hs_conf") self.hs_conf.valueChanged.connect(self.conf_change) self.dsb_conf = QtWidgets.QDoubleSpinBox ) self.dsb_conf.valueChanged.connect(self.dsb_conf_change) self.dsb_iou = QtWidgets.QDoubleSpinBox

    22110编辑于 2025-07-16
  • 基于yolov8的人脸检测计数系统python源码+onnx模型+评估指标曲线+精美GUI界面

    hs_conf") self.hs_conf.valueChanged.connect(self.conf_change) self.dsb_conf = QtWidgets.QDoubleSpinBox ) self.dsb_conf.valueChanged.connect(self.dsb_conf_change) self.dsb_iou = QtWidgets.QDoubleSpinBox

    30310编辑于 2025-07-16
  • 基于yolov8的课堂行为检测系统python源码+onnx模型+评估指标曲线+精美GUI界面

    hs_conf") self.hs_conf.valueChanged.connect(self.conf_change) self.dsb_conf = QtWidgets.QDoubleSpinBox ) self.dsb_conf.valueChanged.connect(self.dsb_conf_change) self.dsb_iou = QtWidgets.QDoubleSpinBox

    33310编辑于 2025-07-21
  • 基于yolov8的血细胞检测计数系统python源码+onnx模型+评估指标曲线+精美GUI界面

    hs_conf") self.hs_conf.valueChanged.connect(self.conf_change) self.dsb_conf = QtWidgets.QDoubleSpinBox ) self.dsb_conf.valueChanged.connect(self.dsb_conf_change) self.dsb_iou = QtWidgets.QDoubleSpinBox

    18710编辑于 2025-07-16
  • 基于yolov8的玉米病害检测系统python源码+onnx模型+评估指标曲线+精美GUI界面

    hs_conf") self.hs_conf.valueChanged.connect(self.conf_change) self.dsb_conf = QtWidgets.QDoubleSpinBox ) self.dsb_conf.valueChanged.connect(self.dsb_conf_change) self.dsb_iou = QtWidgets.QDoubleSpinBox

    26010编辑于 2025-07-21
  • 基于yolov8的水面垃圾水面漂浮物检测系统python源码+onnx模型+评估指标曲线+精美GUI界面

    hs_conf") self.hs_conf.valueChanged.connect(self.conf_change) self.dsb_conf = QtWidgets.QDoubleSpinBox ) self.dsb_conf.valueChanged.connect(self.dsb_conf_change) self.dsb_iou = QtWidgets.QDoubleSpinBox

    28110编辑于 2025-07-22
  • 基于yolov8的肉鸡健康状态检测系统python源码+onnx模型+评估指标曲线+精美GUI界面

    hs_conf") self.hs_conf.valueChanged.connect(self.conf_change) self.dsb_conf = QtWidgets.QDoubleSpinBox ) self.dsb_conf.valueChanged.connect(self.dsb_conf_change) self.dsb_iou = QtWidgets.QDoubleSpinBox

    15910编辑于 2025-07-16
  • 基于yolov8的西红柿缺陷检测系统python源码+onnx模型+评估指标曲线+精美GUI界面

    hs_conf") self.hs_conf.valueChanged.connect(self.conf_change) self.dsb_conf = QtWidgets.QDoubleSpinBox ) self.dsb_conf.valueChanged.connect(self.dsb_conf_change) self.dsb_iou = QtWidgets.QDoubleSpinBox

    15700编辑于 2025-07-22
  • 基于yolov8的行人检测计数系统python源码+onnx模型+精美GUI界面

    hs_conf") self.hs_conf.valueChanged.connect(self.conf_change) self.dsb_conf = QtWidgets.QDoubleSpinBox ) self.dsb_conf.valueChanged.connect(self.dsb_conf_change) self.dsb_iou = QtWidgets.QDoubleSpinBox

    18810编辑于 2025-07-16
  • 基于yolov5的猪只识别计数检测系统python源码+onnx模型+评估指标曲线+精美GUI界面

    hs_conf") self.hs_conf.valueChanged.connect(self.conf_change) self.dsb_conf = QtWidgets.QDoubleSpinBox ) self.dsb_conf.valueChanged.connect(self.dsb_conf_change) self.dsb_iou = QtWidgets.QDoubleSpinBox

    24210编辑于 2025-07-22
  • 智慧交通基于yolov8的行人车辆检测计数系统python源码+onnx模型+精美GUI界面

    hs_conf") self.hs_conf.valueChanged.connect(self.conf_change) self.dsb_conf = QtWidgets.QDoubleSpinBox ) self.dsb_conf.valueChanged.connect(self.dsb_conf_change) self.dsb_iou = QtWidgets.QDoubleSpinBox

    25210编辑于 2025-07-16
领券