开发者

QText Edit scroll bar

开发者 https://www.devze.com 2023-02-02 23:33 出处:网络
开发者_如何学编程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 QAbs

开发者_如何学编程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()).

0

精彩评论

暂无评论...
验证码 换一张
取 消