摘要: qt报错:No such signal QPushButton - 解决办法: ``` connect(ui-rButton, SIGNAL(clickeed()), this, SLOT(onClicked())); ``` 阅读全文
posted @ 2023-09-07 22:12 “悟” 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 在连接信号与槽时,报错解决`error: no matching member for call to 'connect'` - 原因 由于信号被重载过,同名了,但是参数不一样,就会报错。 这种情况下使用使用旧版语法 ``` connect(sender, SIGNAL(func()), recei 阅读全文
posted @ 2023-09-07 22:09 “悟” 阅读(99) 评论(0) 推荐(0) 编辑
摘要: # QListView添加数据 - 准备数据 ``` QStringList list; list setStringList(list); ``` - 为QListView添加数据模型 ``` ui->listView->setModel(model); ``` 阅读全文
posted @ 2023-09-07 22:00 “悟” 阅读(114) 评论(0) 推荐(0) 编辑