Помощь - Поиск - Пользователи - Календарь
Полная версия этой страницы: Баг в QtWebKit со скролом.
Форум на CrossPlatform.RU > Библиотеки > Qt > Qt Script. Интеграция WebKit
kibsoft
Есть такой HTML код:
Цитата
<html><head></head><body><b><font face="New Times Roman color" color="Green">KIBSOFT (19:10:11 02.04.2010)</font></b>
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">sdf</p><br><b><font face="New Times Roman color" color="Green">KIBSOFT (19:10:12 02.04.2010)</font></b>
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">fsdg</p><br><b><font face="New Times Roman color" color="Green">KIBSOFT (19:10:13 02.04.2010)</font></b>
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">g</p><br><b><font face="New Times Roman color" color="Green">KIBSOFT (19:10:14 02.04.2010)</font></b>
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">fsdg</p><br><b><font face="New Times Roman color" color="Green">KIBSOFT (19:10:21 02.04.2010)</font></b>
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><img src="D:/Projects/TalkingShopWebView/debug/smiles/3.gif"></p><br></body></html>

Так вот, scrollBarMaximum() при таком html выдает нуль, хотя скролл есть и его надо опускать вниз.
Если же изменить <img src="D:/Projects/TalkingShopWebView/debug/smiles/3.gif"> на простой текст, то все будет OK. Это баг или я туплю?
P.S. также проверял в Previewer'е из примеров, выводя максимум.
Litkevich Yuriy
тему разделил: как использовать grabGesture для прокрутки HTML-страницы
Для просмотра полной версии этой страницы, пожалуйста, пройдите по ссылке.
Форум IP.Board © 2001-2024 IPS, Inc.