上一页 1 ··· 129 130 131 132 133 134 135 136 137 ··· 164 下一页
摘要: this->resize(300,200); button=new QPushButton("AAA",this); button->move(10,10); button->resize(50,50); button->setCursor(Qt::UpArrowCursor); //给部件设置光标 阅读全文
posted @ 2019-09-15 12:17 天子骄龙 阅读(2388) 评论(0) 推荐(0)
摘要: 需要 #include <QSlider> 实例下载地址:https://share.weiyun.com/5pS1nZQ 阅读全文
posted @ 2019-09-14 19:46 天子骄龙 阅读(2605) 评论(0) 推荐(0)
摘要: #include <QSpinBox> #include <QDoubleSpinBox> QSpinBox 用于整数的显示和输入,一般显示十进制数,也可以显示二进制、十六进制的数,而且可以在显示框中增加前缀或后缀 QDoubleSpinBox 用于浮点数的显示和输入,可以设置显示小数位数,也可以设 阅读全文
posted @ 2019-09-14 10:27 天子骄龙 阅读(2576) 评论(0) 推荐(0)
摘要: 视频教程地址:https://www.bilibili.com/video/av51766541/?p=30 阅读全文
posted @ 2019-09-13 14:07 天子骄龙 阅读(1006) 评论(0) 推荐(0)
摘要: 需要 #include <QTableWidget> #include <QTableWidgetItem> 实例下载地址:https://share.weiyun.com/5XJEW44 阅读全文
posted @ 2019-09-11 07:07 天子骄龙 阅读(5042) 评论(0) 推荐(0)
摘要: 需要 #include <QTreeWidget> #include <QTreeWidgetItem> 实例下载地址:https://share.weiyun.com/5BhTQXr 阅读全文
posted @ 2019-09-10 10:34 天子骄龙 阅读(2433) 评论(0) 推荐(0)
摘要: 需要 #include <QListWidget> #include <QListWidgetItem> 列表控件可以让我们以列表形式呈现内容,是界面更加有序美观。QListWidget列表控件应当与QListWidgetItem一起使用,后者作为项被添加入列表控件中,也就是说列表控件中的每一项都是 阅读全文
posted @ 2019-09-08 20:44 天子骄龙 阅读(6438) 评论(0) 推荐(0)
摘要: 颜色对话框——QColorDialog: 需要 #include <QColorDialog> QColor color=QColorDialog::getColor(QColor(255,0,0,255)); //打开颜色对话框选择颜色 静态方法 //参数 起始选中的颜色 //返回值 选中的颜色 阅读全文
posted @ 2019-09-08 09:37 天子骄龙 阅读(260) 评论(0) 推荐(0)
摘要: 需要 #include <QMessageBox> 阅读全文
posted @ 2019-09-07 08:13 天子骄龙 阅读(895) 评论(0) 推荐(0)
摘要: 需要 #include <QDialog> this->resize(500,400); this->setWindowTitle("主窗口"); QDialog d(this); d.resize(200,200); d.setWindowTitle("模态还是非模态"); d.exec();// 阅读全文
posted @ 2019-09-06 12:30 天子骄龙 阅读(2082) 评论(0) 推荐(0)
上一页 1 ··· 129 130 131 132 133 134 135 136 137 ··· 164 下一页