开发者_如何学编程Does QTextedit have a scrollbar signals?
QTextEdit
inherits from QAbstractScrollArea
, i.e. you could call e.g. verticalScrollBar()
and then access signals QScrollBar
inherits from QAbstractSlider
.
But perhaps you could give more context what you want to accomplish.
No it doesn't. Scrolling is being signaled using events.
Take a look at
void QAbstractScrollArea::scrollContentsBy (int dx, int dy)
What you can do with QTextEdit
is set its scrollbar though (I think you'd use .setScrollBar()
).
精彩评论