[Qt-qml] QML_IMPORT_TRACE in Symbian

Pekka.E.Jokela at nokia.com Pekka.E.Jokela at nokia.com
Mon Dec 20 13:02:20 CET 2010


Thanks Joona for the explanation.

I added
QByteArray data = "1";
qputenv("QML_IMPORT_TRACE", data);

into the beginning of main() of my application, which did the trick (for the particular application in the emulator).

 -P

From: Petrell Joona.T (Nokia-MS/Brisbane)
Sent: 20.12.2010 04:40
To: Jokela Pekka.E (Nokia-MS/Tampere); qt-qml at qt.nokia.com
Subject: RE: QML_IMPORT_TRACE in Symbian

Hi,

QDeclarativeImports uses qgetenv function from qglobal.h for querying if QML_IMPORT_TRACE has been exported in the process environment. Unfortunately as far as I understand there is no such concept as environmental variables on Symbian, so you cannot currently enable import tracing without directly modifying code in QtDeclarative module, for example by replacing all mentions of "qmlImportTrace()" in qdeclarativeimport.cpp file with "true".
src\declarative\qml\qdeclarativeimport.cpp

If you have an idea of how to handle this better for Symbian, please file a suggestion to Qt bug tracker. :)

Br,

Joona

From: qt-qml-bounces+joona.t.petrell=nokia.com at qt.nokia.com [mailto:qt-qml-bounces+joona.t.petrell=nokia.com at qt.nokia.com] On Behalf Of Jokela Pekka.E (Nokia-MS/Tampere)
Sent: Friday, December 17, 2010 4:43 PM
To: qt-qml at qt.nokia.com
Subject: [Qt-qml] QML_IMPORT_TRACE in Symbian

Hi,
The QML debug page
http://doc.trolltech.com/latest/qdeclarativedebugging.html#debugging-module-imports
suggest using QML_IMPORT_TRACE=1 to get the more debug information of loaded imports. This seems to work fine in desktop, but those prints are not visible in Symbian emulator runs (haven't tried on HW). How can I enable the prints in Symbian?

Thanks,
-Pekka


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20101220/e78e49f0/attachment.html 


More information about the Qt-qml mailing list