找回密码
 立即注册
收起左侧

spinBoxRow找不到对应类

0
回复
4018
查看
[复制链接]
累计签到:11 天
连续签到:1 天
来源: 2020-10-13 10:34:30 显示全部楼层 |阅读模式
1Qter豆
qt5.9开放指南里“6.2.2 对话框QWDialogSize的创建和使用”里有关接口函数实现代码是这样的

int QWDialogSize::rowCount()
{
return ui->spinBoxRow->value();
}

int QWDialogSize::columnCount()
{
return ui->spinBoxColumn->value();
}

void QWDialogSize::setRowColumn(int row, int column)
{
ui->spinBoxRow->setValue(row);
ui->spinBoxColumn->setValue(column);
}



其中spinBoxRow和spinBoxColumn打上去没反应,照理说这时我应该include对应的类,可是我找不到任何的类包含这两个项?spinBoxRow和spinBoxColumn到底是怎么回事?

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

公告
可以关注我们的微信公众号yafeilinux_friends获取最新动态,或者加入QQ会员群进行交流:190741849、186601429(已满) 我知道了