Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [Partially Solved]Qt Creator Debugging QML Modules
Forum Updated to NodeBB v4.3 + New Features

[Partially Solved]Qt Creator Debugging QML Modules

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 1.5k Views 1 Watching
  • 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.
  • L Offline
    L Offline
    Leonard777
    wrote on last edited by
    #1

    Hello all,

    I'm putting some shared code in a QML module. This works just fine except that I cannot debug any of the .qml or .js files in the module when debugging projects that use the shared code. As soon as I step into a function that runs from the module I can see the function calls on the stack, but the debugger acts like there is no code there.

    On a related note, when I put my QML files into a .qrc file, I get errors in Qt Creator that the files cannot be found and code completion is broken.

    Any idea if Qt Creator should support this or maybe if it's on the roadmap for a future release?

    Thanks!
    Corey

    1 Reply Last reply
    0
    • L Offline
      L Offline
      Leonard777
      wrote on last edited by
      #2

      I was able to enable debugging by including the source files for the module in my .pro file along side the .qrc file.

      Error checking and code completion is still broken however. Any ideas on how to get code completion and error checking to work on QML files contained in a .qrc?

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        Best only way to get a developer that actually knows the code to look at the issue is to "file a bug report":https://bugreports.qt-project.org/ ...

        Bonus points for checking the bug tracker for similar issues first;)

        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