Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Could not connect to the in-process QML profiler

    Tools
    2
    3
    2419
    Loading More Posts
    • 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.
    • M
      maxwell31 last edited by

      Hi,

      I am using QtCreator and cmake. I would like to use the QML profiler. Under Run Settings in Projects I enabled the Enable QML checkbox under Debugger Settings. What can I do to make this work?

      1 Reply Last reply Reply Quote 0
      • M
        maxwell31 last edited by

        One needs to add
        #include <QQmlDebuggingEnabler>
        QQmlDebuggingEnabler enabler;

        If this is in the documentation, it is not at a very prominent place

        Aleksey_K 1 Reply Last reply Reply Quote 1
        • Aleksey_K
          Aleksey_K @maxwell31 last edited by

          @maxwell31 does not work for me, get error: Could not connect to the in-process QML profiler within 128 s. Do you want to retry and wait 256 s? Any other ideas?

          Screenshot_20211214_191053.png

          1 Reply Last reply Reply Quote 0
          • First post
            Last post