[Qt-qml] Trying hard to get WebView to work from a QML only program on N900 with Qt 4.7

bruce.cichowlas at nokia.com bruce.cichowlas at nokia.com
Thu Jul 22 18:32:13 CEST 2010


Since I've tried many things and have been unable to confirm that anyone is running WebView on websites using QML-only (from QMLViewer) on a N900, I filed the following bug:

http://bugreports.qt.nokia.com/browse/QTBUG-12359

Bruce
________________________________________
From: ext Sacha Zyto [sacha at MIT.EDU]
Sent: Thursday, July 22, 2010 10:57 AM
To: Cichowlas Bruce (Nokia-MS/Boston)
Subject: Re: [Qt-qml] Trying hard to get WebView to work from a QML     only program on N900 with Qt 4.7

Hi Bruce,

Sorry for the misunderstanding. I've been using libqt4-experimental-dev
from extras-devel as well, with instructions from
http://labs.trolltech.com/blogs/2010/07/12/qt-47-for-the-n900-news/

So my guess is that we have the same version of Qt on the N900. However,
on the one I've installed, there's no qml not qmlviewer binary in
/opt/qt4-maemo5/bin. I wonder what happens when you press F5 in
QtCreator: Maybe it creates a thin C++-based wrapper around your QML app
in order to run it as a native app on the N900. But I have honestly no
idea: Maybe that would be a good question for the [Qt-Creator] list.

In any case, I've never been able to run a qml app from a qmlviewer in
the N900, whether or not it contains a WebView: I've always wrapped them
up in C++, which is fortunately well documented, even for non Qt
beginners like me. However, once wrapped up in C++, I've had used
Webviews on the N900 without any problem (apart from the black
background that comes from the default theme, which is really weird for
HTML pages that don't specify their "background-color" style explicitely
:)  )

Best,
Sacha





On 07/21/2010 09:14 PM, bruce.cichowlas at nokia.com wrote:
> My understanding may be wrong, but I am thinking that the version of Qt 4.7 that I am using on the N900 is relatively new because I am thinking that it came within this .deb file in the extras-devel repository
>
> libqt4-experimental-core_4.7.0~git20100706-0maemo1_armel.deb
>
> which I downloaded from
>
> http://maemo.org/packages/package_instance/view/fremantle_extras-devel_free_armel/libqt4-experimental-core/4.7.0~git20100706-0maemo1/
>
> That was the most recent qt4-experimental build I could find there yesterday.  I am guessing that it was current as of 2010/07/06 , but perhaps not if it was included from somewhere else.
>
> I'm not using C++ in conjunction with my QML currently.  I've just running from QMLViewer on the N900 and by pressing F5 in QtCreator.
>
> I thought that I was using the most recent beta build of QtCreator.  There only appeared to be one available last time I checked that supported both 4.7 and QML.  It seemed a little confusing because even though I downloaded using a link that said something like beta 2.0.1, when it installed, it called itself 1.83 if I recall correctly.  (I'm writing this from another computer at another location.)  But I don't mean to make a big issue over the PC/N900 slight changes in source.  My main concern is to see actual web pages within WebView on the N900 using just QML.  It sounds as if others here are successful at doing that, though I don't recall anyone saying directly that they did it on 4.7 on the N900 using only QML.
>
> Thanks,
> Bruce
>
>





More information about the Qt-qml mailing list