November 1, 2011

nesaver nesaver
Lab Rat
11 posts

[SOLVED]webview and listview in a Flickable.

 

Hi,

I want show a news detail and related news, when user scroll down to the end of the news detail (html content), the related news is showed. I used: a webview and a listview in a Flickable, and set:
Flickable.ContentHeight = WebView.PreferredHeight + ListView.Height
but when it show, i can’t scroll down webview.

Could you help me ? Thanks

3 replies

November 1, 2011

Mohsen Mohsen
Lab Rat
685 posts

see RssNews example http://doc.qt.nokia.com/stable/demos-declarative-rssnews.html

 Signature 

www.madagon.com

November 2, 2011

nesaver nesaver
Lab Rat
11 posts

Hi Mohsen, In RssNews example, it’s doesn’t use webview.

November 3, 2011

nesaver nesaver
Lab Rat
11 posts

I found it, use property binding:
Flikcable..ContentHeight : WebView.PreferredHeight + ListView.Height
and this problem’s resolved

Thanks everyone

 
  ‹‹ [SOLVED] how to dynamic assign a value to qml item’s property transform      VU Bargraph in QML - High consumption of CPU ››

You must log in to post a reply. Not a member yet? Register here!