摘要: 显示串口信息 阅读全文
posted @ 2017-04-17 22:23 随风666 阅读(262) 评论(0) 推荐(0) 编辑
摘要: //控制死窗体 int width = this->geometry().width(); int height = this->geometry().height(); this->setFixedSize(width,height); //定时器的使用 QTimer *serialReadTimer = new QTimer; ... 阅读全文
posted @ 2017-04-16 23:02 随风666 阅读(246) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE"); db.setDatabaseName("stud... 阅读全文
posted @ 2017-04-16 22:50 随风666 阅读(1126) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int main(int argc, char *argv[]) { float y,x,z,f; for(y = 1.5f;y > -1.5f;y -= 0.1f) { for(x = -1.5f;x < 1.5f; x += 0.05f) { z = x * 阅读全文
posted @ 2017-03-01 17:43 随风666 阅读(143) 评论(0) 推荐(0) 编辑