4 个解决方案
#1
QScrollBar *vScrollBar = ui->listView->verticalScrollBar();
if (vScrollBar->value() == vScrollBar->maximum()) {
// at bottom
}
#2
麻烦问一下,我把connect写到了QListView的子类里面,但是却没有效果是怎么回事啊
vScrollBar = verticalScrollBar() ;
connect(gEventDispather, SIGNAL(valueChanged ( int ) ), this, SLOT(slot_SBarValueCg( int )));
不会执行到slot_SBarValueCg中
#3
我天,第一个参数写错了,刚发现,我再试试
#4
QScrollBar *vScrollBar = ui->listView->verticalScrollBar();
if (vScrollBar->value() == vScrollBar->maximum()) {
// at bottom
}
可以了,谢谢啦
#1
QScrollBar *vScrollBar = ui->listView->verticalScrollBar();
if (vScrollBar->value() == vScrollBar->maximum()) {
// at bottom
}
#2
QScrollBar *vScrollBar = ui->listView->verticalScrollBar();
if (vScrollBar->value() == vScrollBar->maximum()) {
// at bottom
}
麻烦问一下,我把connect写到了QListView的子类里面,但是却没有效果是怎么回事啊
vScrollBar = verticalScrollBar() ;
connect(gEventDispather, SIGNAL(valueChanged ( int ) ), this, SLOT(slot_SBarValueCg( int )));
不会执行到slot_SBarValueCg中
#3
QScrollBar *vScrollBar = ui->listView->verticalScrollBar();
if (vScrollBar->value() == vScrollBar->maximum()) {
// at bottom
}
麻烦问一下,我把connect写到了QListView的子类里面,但是却没有效果是怎么回事啊
vScrollBar = verticalScrollBar() ;
connect(gEventDispather, SIGNAL(valueChanged ( int ) ), this, SLOT(slot_SBarValueCg( int )));
不会执行到slot_SBarValueCg中
我天,第一个参数写错了,刚发现,我再试试
#4
QScrollBar *vScrollBar = ui->listView->verticalScrollBar();
if (vScrollBar->value() == vScrollBar->maximum()) {
// at bottom
}
可以了,谢谢啦