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. Unable to use QML Debugging - QAbstractSocket issue ?
Forum Update on Monday, May 27th 2025

Unable to use QML Debugging - QAbstractSocket issue ?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 2 Posters 2.1k 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.
  • B Offline
    B Offline
    Benjamin07 0
    wrote on 18 Oct 2018, 12:29 last edited by
    #1

    Dear all,

    I really would appreciate your help on this issue I am facing.
    I am working on a C++/QML project and I cannot make the QML Debugger work. I can debug the C++ part but not the QML part. I keep having the following error messages in the journal when running my program in debug mode:

    QML Debugger: Socket state changed to QAbstractSocket::HostLookupState
    QML Debugger: Socket state changed to QAbstractSocket::ConnectingState

    QML Debugger: Socket state changed to QAbstractSocket::UnconnectedState
    QML Debugger: Error: QAbstractSocket::ConnectionRefusedError

    Please note that I have :

    • Enable QML debugging and profiling (build step)
    • Enable QML (Run > Debugger Settings)

    I am using Qt 5.11.1 MSVC2017_64bit, Qt creator 4.7.0

    Thank you for your help !

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kkoehne
      Moderators
      wrote on 18 Oct 2018, 12:49 last edited by
      #2

      It looks like the debugger tries to connect to the application via a port, but that fails.

      What does the Application Output of the app say? Do you maybe have a firewall that blocks localhost connections?

      Director R&D, The Qt Company

      B 1 Reply Last reply 18 Oct 2018, 13:34
      0
      • K kkoehne
        18 Oct 2018, 12:49

        It looks like the debugger tries to connect to the application via a port, but that fails.

        What does the Application Output of the app say? Do you maybe have a firewall that blocks localhost connections?

        B Offline
        B Offline
        Benjamin07 0
        wrote on 18 Oct 2018, 13:34 last edited by
        #3

        Thank you @kkoehne for trying to help.

        The application output only displays : "15:17:30: Debugging starts"
        I think you are right when you say that it must be a firewall related issue.... so:

        • I tried to debug one of the QML example (Map Viewer) and the MS Windows firewall pop up asking me if I allowed this application which I did. I then could debug the example without problem.
        • I even tried removing the QML example from the authorized application list and when debugging the same pop-up appears again
        • I have never seen this popup when debugging my own application
        • I tried anyway to add my .exe in the authorized applications list but it does not change anything

        I am really wondering what I am missing here...

        B 1 Reply Last reply 18 Oct 2018, 13:45
        0
        • B Benjamin07 0
          18 Oct 2018, 13:34

          Thank you @kkoehne for trying to help.

          The application output only displays : "15:17:30: Debugging starts"
          I think you are right when you say that it must be a firewall related issue.... so:

          • I tried to debug one of the QML example (Map Viewer) and the MS Windows firewall pop up asking me if I allowed this application which I did. I then could debug the example without problem.
          • I even tried removing the QML example from the authorized application list and when debugging the same pop-up appears again
          • I have never seen this popup when debugging my own application
          • I tried anyway to add my .exe in the authorized applications list but it does not change anything

          I am really wondering what I am missing here...

          B Offline
          B Offline
          Benjamin07 0
          wrote on 18 Oct 2018, 13:45 last edited by
          #4

          @Benjamin07-0 said in Unable to use QML Debugging - QAbstractSocket issue ?:

          I think you are right when you say that it must be a firewall related issue

          To complete... I actually tried to turn off the firewall temporarily, restart Qt Creator, re-run my application in debug mode but no luck. Still the same error message...

          1 Reply Last reply
          0
          • B Offline
            B Offline
            Benjamin07 0
            wrote on 25 Jan 2019, 06:14 last edited by
            #5

            Just an update on this issue. The problem is now solved for a reason I ignore. I haven't changed anything (well at least that I remember of) on the project configuration but the QML debugger is now operational. Several thoughts:

            • windows (firewall) update
            • antivirus update

            Anyway I mark the problem as resolved even if no clear and repeatable solution has been identified.

            1 Reply Last reply
            1

            • Login

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