上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 36 下一页

2021年5月21日

摘要: ![](https://img2020.cnblogs.com/blog/1843414/202105/1843414-20210521175010538-720680982.png) 阅读全文
posted @ 2021-05-21 16:47 lodger47 阅读(37) 评论(0) 推荐(0)
摘要: ![](https://img2020.cnblogs.com/blog/1843414/202105/1843414-20210521141350980-1491071631.png) 阅读全文
posted @ 2021-05-21 14:14 lodger47 阅读(40) 评论(0) 推荐(0)
摘要: //QT +=multimedia #include <QSound> //哪里需要就放到哪里 QSound::play(":/res/TapButtonSound.wav"); 阅读全文
posted @ 2021-05-21 13:10 lodger47 阅读(68) 评论(0) 推荐(0)

2021年5月20日

摘要: QList<QTableWidgetItem *> QTableWidget::findItems(const QString &text, Qt::MatchFlags flags) // 查询item项中有没有匹配的 例: bool isEmpty = ui->usrTablWidget->fi 阅读全文
posted @ 2021-05-20 22:09 lodger47 阅读(2036) 评论(0) 推荐(0)
摘要: QPropertyAnimation *animation = new QPropertyAnimation(this,"geometry",this);// 属性geometry(包含x,y坐标和宽w高h坐标) animation->setDuration(100); //动画时长100毫秒 an 阅读全文
posted @ 2021-05-20 14:26 lodger47 阅读(393) 评论(0) 推荐(0)
摘要: 增加模块QT += network // 初始化属性 ui->inport->setText("8888"); ui->outport->setText("9999"); ui->localip->setText("127.0.0.1"); // 创建套接字 udp = new QUdpSocket 阅读全文
posted @ 2021-05-20 00:09 lodger47 阅读(563) 评论(0) 推荐(0)

2021年5月19日

摘要: // 文本流 QFile file("aaa.txt"); file.open(QFileDevice::WriteOnly); QTextStream stream(&file); stream<<QString("hell oworld")<<123456; file.close(); // 读 阅读全文
posted @ 2021-05-19 13:36 lodger47 阅读(282) 评论(0) 推荐(0)
摘要: // 点击按钮选取文件 connect(ui->pushButton,&QPushButton::clicked,[=](){ ui->textEdit->clear(); QString fileName = QFileDialog::getOpenFileName(this,"选择文件","C: 阅读全文
posted @ 2021-05-19 11:42 lodger47 阅读(1339) 评论(0) 推荐(0)
摘要: QString MyWidget::GetCorrectUnicode(const QByteArray &ba) { QTextCodec::ConverterState state; QTextCodec *codec = QTextCodec::codecForName("UTF-8"); Q 阅读全文
posted @ 2021-05-19 11:34 lodger47 阅读(753) 评论(1) 推荐(0)
摘要: #include "widget.h" #include "ui_widget.h" #include <QPainter> Widget::Widget(QWidget *parent) : QWidget(parent), ui(new Ui::Widget) { ui->setupUi(thi 阅读全文
posted @ 2021-05-19 10:54 lodger47 阅读(79) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 36 下一页

导航