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); [email protected]
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: [email protected] 
[mailto:[email protected]] On Behalf Of 
Jokela Pekka.E (Nokia-MS/Tampere)
Sent: Friday, December 17, 2010 4:43 PM
To: [email protected]
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


_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to