Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML debugging
QtWS25 Last Chance

QML debugging

Scheduled Pinned Locked Moved QML and Qt Quick
7 Posts 5 Posters 6.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Thanatos
    wrote on last edited by
    #1

    Can anybody tell me where (or how) exactly should i set QML_IMPORT_TRACE ?

    "http://doc.qt.nokia.com/4.7-snapshot/qdeclarativedebugging.html":http://doc.qt.nokia.com/4.7-snapshot/qdeclarativedebugging.html

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qtnext
      wrote on last edited by
      #2

      if you use Qtcreator, go to project, run settings and add QML_IMPORT_TRACE to Run Environment with value set to 1.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mbrasser
        wrote on last edited by
        #3

        If running from the command line on Linux or OS X, it's often convenient to prepend it to the line you are running, e.g:

        @QML_IMPORT_TRACE=1 qmlviewer myFile.qml@

        This "wikipedia article":http://en.wikipedia.org/wiki/Environment_variable also provides a general overview of setting environmental variables on the various platforms.

        F 1 Reply Last reply
        0
        • T Offline
          T Offline
          Thanatos
          wrote on last edited by
          #4

          Still don't get it, can someone provide screen-shot where in QtCreator i can set that variable ?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mbrasser
            wrote on last edited by
            #5

            What type of project is it? For a "Qt Quick UI" project (a project consisting of only QML files) you may have to specify a custom executable in order to be able to set environmental variables (for the screen shown "here":http://doc.qt.nokia.com/qtcreator-snapshot/creator-run-settings.html#specifying-run-settings-for-qt-quick-projects, you'd need to change the run configuration to "custom executable", at which point a "Run Environment" section should appear below, which allows you to set environmental variables).

            It might be worth raising this as a suggestion for the creator team (something along the lines of "make setting environmental variables for Qt Quick UI projects easier") via "bugreports.qt.nokia.com":bugreports.qt.nokia.com

            1 Reply Last reply
            0
            • V Offline
              V Offline
              vishwajeet
              wrote on last edited by
              #6

              how to setup in pro file ?

              Born To Code !!!

              1 Reply Last reply
              0
              • M mbrasser

                If running from the command line on Linux or OS X, it's often convenient to prepend it to the line you are running, e.g:

                @QML_IMPORT_TRACE=1 qmlviewer myFile.qml@

                This "wikipedia article":http://en.wikipedia.org/wiki/Environment_variable also provides a general overview of setting environmental variables on the various platforms.

                F Offline
                F Offline
                flowery
                wrote on last edited by
                #7

                @mbrasser Could you please tell, Where to check the trace output .. Will it helpful to find the reason for application crash?.

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved