我正在尝试使用QListView。基本上,只是尝试打印出我在视图中选择的数据。我被卡住了,直到Justin,一个非常有耐心的Python导师,给我看了这段代码。listView.clicked.connect(B) record = sqlmodel.record(index.row())
在这种情况下,我应该在文档中的什么地方了解这个单
DateList我想做的是,当我在时间列表中选择一个项目时,数据列表中的相同索引也会被选中,然后我会将数据发送到日期时间编辑 我尝试使用QAbstractItemmodel模型->索引(行,列);并创建索引index when an item is clicked
ui->DateList->setcurrentIndex(i); //it sets the same index in the other QListViewsele