03 2022 档案
摘要:一段代码: void InitSpeedSystemTable(int row) { ui->tableSpeedSystem->clear(); ui->tableSpeedSystem->horizontalHeader()->setVisible(true); ui->tableSpeedSy
阅读全文
摘要:1、判断某条数据是否存在 bool DataBaseManager::WriteConfigure(QString configureName, QString configureVal) { QString sql = QString("select 1 from Configure where
阅读全文
摘要:读: json: { "first": { "second": { "third1":"23423", "third2":"2323" }, "four":"234234" }, "five":"34234" } 代码: const QString Results = "first"; const
阅读全文
摘要:当工具栏的按钮被按下,图标保持不变,需要怎么做? 下面是qss,另外需要设置按钮 checkable 为true QPushButton#btnZHGL { border-radius:10px; font-size:28px; font-family:Microsoft YaHei; font-w
阅读全文
摘要:QImage *img = new QImage; img->load(pic); QPixmap pixmap = QPixmap::fromImage(*img); QPixmap fitpixmap = pixmap.scaled(50, 50, Qt::IgnoreAspectRatio,
阅读全文
摘要:1、QListWidget 插入Qwidget QListWidgetItem *widgetItem = new QListWidgetItem(ui->listWidget); widgetItem->setSizeHint(QSize(94, 48)); ui->listWidget->add
阅读全文