[Qt-qml] QtWebkit, different behavior between PC and N950

Sergiy.Dubovik at nokia.com Sergiy.Dubovik at nokia.com
Tue Sep 6 12:30:55 CEST 2011


Hi,

QtCreator uses Qt sdk. If you didn't put qt components files to it, it
will complain about missing import.
If you compile for device, it will make additional files available because
they are available in harmattan.

Device has qt components. Your sdk - doesn't.
But this may not be the cause for N950 problem.
Launch it from ssh, command line.
:s

On 9/6/11 1:21 PM, "ext Jose Manrique Lopez de la Fuente"
<jsmanrique at gmail.com> wrote:

>Hi,
>
>If I load the qml file in QtCreator, it says com.nokia.meego 1.0 can
>not be found and Window is an unknown type...
>
>2011/9/6  <Sergiy.Dubovik at nokia.com>:
>> Launch it from command line, you should see errors. Connect to n950 from
>> ssh. You also can use qtsdk and it will deploy and run for you. It
>>should
>> show errors in qtcreator.
>> I guess problems are with imports. You should use import QtQuick 1.1
>>also.
>> Br,
>> Sergiy
>>
>> On 9/6/11 11:15 AM, "ext Jose Manrique Lopez de la Fuente"
>> <jsmanrique at gmail.com> wrote:
>>
>>>Hi,
>>>
>>>I am running the following qml in my laptop and in my N950. In the
>>>laptop, it works as expected. In the N950, I get a white screen.
>>>
>>>I have tried loading the URL site in the N950 browser, and it works as
>>>expectedŠ So I am trying to guess what it¹s going wrong.
>>>
>>>Thank you very much and best regards
>>>
>>>import QtQuick 1.0
>>>import QtWebKit 1.0
>>>import com.nokia.meego 1.0
>>>
>>>Window {
>>> id:rootWindow
>>>
>>> WebView {
>>>  id: webView
>>>  anchors.fill: parent
>>>  width: rootWindow.width
>>>  height: rootWindow.height
>>>  settings.javascriptEnabled: true
>>>  settings.localStorageDatabaseEnabled: true
>>>  settings.offlineStorageDatabaseEnabled: true
>>>  settings.offlineWebApplicationCacheEnabled: true
>>>  url: 'http://www.carefy.com/AHS-Assistant/'
>>> }
>>>}
>>>
>>>--
>>>J. Manrique López de la Fuente
>>>http://www.jsmanrique.es
>>>_______________________________________________
>>>Qt-qml mailing list
>>>Qt-qml at qt.nokia.com
>>>http://lists.qt.nokia.com/mailman/listinfo/qt-qml
>>
>>
>
>
>
>-- 
>J. Manrique López de la Fuente
>http://www.jsmanrique.es
>_______________________________________________
>Qt-qml mailing list
>Qt-qml at qt.nokia.com
>http://lists.qt.nokia.com/mailman/listinfo/qt-qml



More information about the Qt-qml mailing list