标题:qt4 的scrollBy??
作者:ethnicity
日期:2009-07-09 16:04
内容:
请问,qt4 中有没有像qt3中ScrollView::scrollBy(int dx,int dy)那样会使文本滚动的类似函数?
#1 [shiroki 07-10 13:55]
void QAbstractScrollArea::scrollContentsBy ( int dx, int dy )
#2 [ethnicity 07-10 16:02]
引用第1楼shiroki于2009-07-10 13:55发表的:
void QAbstractScrollArea::scrollContentsBy ( int dx, int dy )
具体的实现方法,shiroki能说下么?偶非常菜的。
#3 [ethnicity 08-29 14:56]
我自己是通过 QTextBrowser->verticalScrollBar()->setValue(flag),用时间事件控制实现的滚屏。