#include "mainwindow.h"#include "ui_mainwindow.h"MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow){ ui->setupUi(this); //定时器 RCV_CAN0=new QTimer(this); RCV_CAN1=new QTimer(this); Flow_control_frame = new QTimer(this); Read_ALL_Snapshot_Data = new QTimer(this); //------------------------------------tableView设置-------------------------------------------- ui->Main_tableView->setShowGrid(true);//2.表格网格线的显示与取消 背景网格线设置 显示 ui->Main_tableView->setGridStyle(Qt::DotLine);//3、网格背景画笔 DotLine点线 ui->Main_tableView->setSortingEnabled(false);//4.排序功能,排序结果很乱,我不打算启用它 ui->Main_tableView_CAN0->setShowGrid(true); ui->Main_tableView_CAN0->setGridStyle(Qt::DotLine); ui->Main_tableView_CAN0->setSortingEnabled(false); ui->Main_tableView_CAN1->setShowGrid(true); ui->Main_tableView_CAN1->setGridStyle(Qt::DotLine); ui->Main_tableView_CAN1->setS
基于Qt周立功二次开发库开发的CAN II上位机
最新推荐文章于 2024-06-25 10:08:55 发布