2Qter豆
最佳答案connect(btnQuery, SIGNAL(clicked()), this, slot_onQuery());
编写“查询按钮”的槽函数:
void xxxDialog:slot_onQuery()
{
QString str = lineEdit->text();
// str是"yyyyMMdd"格式,
QString strFileName = 路径 + str;
QFile file(strFileName);
......
}
关于信号槽,您可以参考KS05-02,是收费课程,http://www.qter.org/forum.php?mod=viewthread&tid=20408&extra= ...
| ||
2019-1-25 17:44:38
显示全部楼层
评分 | ||
2019-1-28 09:08:55
显示全部楼层
| ||
2019-1-31 13:54:27
显示全部楼层
| ||
2019-2-1 11:20:44
显示全部楼层
| ||
2019-2-1 14:30:25
显示全部楼层
| ||