[Qt-qml] loading network resources

Mario Negro Ponzi marionegroponzi at googlemail.com
Thu Feb 24 13:54:54 CET 2011


Hi Thor,
thank you for your reply. Unfortunately there must be something else going
wrong ;-)

Maybe it can help knowing that:
1) I'm using the Tech Preview of the SDK
2) I'm compiling using the Remote compiler (I'm on OSX) targeting Nokia
Symbian^3 0.9 and Qt 4.7.0 (seems to be the lastest option available for
S^3)
3) I'm testing using the Remote Device Access on a N8-00

I guess 2 and/or 3 might be the cause of the problem but I don't see why I
don't get any error.

For reference, I've just created a new Qt Quick application using Qt Creator
and added

    Image {

        anchors.centerIn: parent

        source: "http://farm1.static.flickr.com/197/503637906_812e2e28b2.jpg"

    }

at the bottom of the main.qml file.


The .pro file _does_ define NETWORKACCESS as you can see below.


# Add more folders to ship with the application, here

folder_01.source = qml/TestNetworkImage

folder_01.target = qml

DEPLOYMENTFOLDERS = folder_01

# Additional import path used to resolve QML modules in Creator's code model

QML_IMPORT_PATH =

# Avoid auto screen rotation

#DEFINES += ORIENTATIONLOCK

# Needs to be defined for Symbian

DEFINES += NETWORKACCESS

symbian:TARGET.UID3 = 0xE39B03F2

# Define QMLJSDEBUGGER to allow debugging of QML in debug builds

# (This might significantly increase build time)

# DEFINES += QMLJSDEBUGGER

# If your application uses the Qt Mobility libraries, uncomment

# the following lines and add the respective components to the

# MOBILITY variable.

# CONFIG += mobility

# MOBILITY +=

# The .cpp file which was generated for your project. Feel free to hack it.

SOURCES += main.cpp

# Please do not modify the following two lines. Required for deployment.

include(qmlapplicationviewer/qmlapplicationviewer.pri)

qtcAddDeployment()



Thank you again for your time,
Mario

On 24 February 2011 13:24, <ext-thor.larholm at nokia.com> wrote:

>  You need to add a define in your .pro file to enable network access on
> Symbian.
>
>
>
>     # Needs to be defined for Symbian if we want network access
>
>     DEFINES += NETWORKACCESS
>
>
>
> This is a shortcut for Qt Creator 2.1 which appends the following
> capability.
>
>
>
>     TARGET.CAPABILITY += NetworkServices
>
>
>
> Also see http://developer.qt.nokia.com/forums/viewthread/2145
>
>
>
>
>
>
>
> Cheers,
>
> Thor
>
>
>
> *From:* qt-qml-bounces+ext-thor.larholm=nokia.com at qt.nokia.com [mailto:
> qt-qml-bounces+ext-thor.larholm=nokia.com at qt.nokia.com] *On Behalf Of *ext
> Mario Negro Ponzi
> *Sent:* Thursday, February 24, 2011 1:51 AM
> *To:* Qt-qml at qt.nokia.com
> *Subject:* [Qt-qml] loading network resources
>
>
>
> Hi all,
>
> I've a problem loading network images from a QML application, but only on
> Symbian. I've found that somebody else has had the same issue here:
>
>
>
> http://developer.qt.nokia.com/forums/viewthread/2672
>
>
>
> but there is no solution on the thread.
>
> Any idea?
>
>
>
> Thank you,
>
> Mario
>
>
> --
>
>


-- 


Mario Negro Ponzi
Mobile: +31.6.3456.1669
Address: Kogerwatering 2, 1541XC, Koog aan de Zaan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110224/9b62a72a/attachment-0001.html 


More information about the Qt-qml mailing list