May 6, 2012

macmee macmee
Lab Rat
2 posts

Very very poor scrolling using QtWebKit


I’m attempting to wrap my javascript/html application using qt and so far everything works fine, however scrolling is unbearable. On both Windows and OS X when scrolling it appears as if it takes several seconds for the scrolling to carry out. It is especially sluggish when I’m attempting to scroll through a DIV where its contents was computed dynamically with javascript (sometimes I scroll, count to ten, and it’s stil trying to compute what to do). Even if I run something like this, though:

  1. // import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
  2. import QtQuick 1.1
  3. import QtWebKit 1.0
  5. Rectangle {
  6.     id: application
  7.     width: 1014
  8.     height: 500
  9.     WebView {
  10.         id: page
  11.         html: "<iframe  src=''></iframe>"
  12.         preferredWidth: parent.width
  13.         preferredHeight: parent.height
  14.         scale: 1.0
  15.         settings.localContentCanAccessRemoteUrls: true
  16.     }
  17. }

I’m hoping there’s a fix for this, my qt experience other than with this has been wonderful!

0 replies

  ‹‹ [SOLVED] QWebview - website requires authentication      [Problem] - Import Webkit in a Qt Project ››

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