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/C++ debugging not working in qtcreator
Forum Updated to NodeBB v4.3 + New Features

Qml/C++ debugging not working in qtcreator

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 196 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.
  • O Offline
    O Offline
    oliver_mpt
    wrote on last edited by
    #1

    Hello,
    I am working on an app which mixes C++ and qml. I am using qt 5.15.1, targeting android platform.
    The kit uses the Android Debugger (Multi-Abi NDK 21.3.6528147), Qt 5.15 for Android.
    The debugger works perfectly well in Qml, but no way I can make it stop on a breakpoint in the C++ part, even in the first lines of the main.cpp
    Of course, I have checked that both Enable c++ and enable QML checkboxes are ticked in the Run parameters of the project.
    Any idea to solve this is welcomed !

    O 1 Reply Last reply
    0
    • O oliver_mpt

      Hello,
      I am working on an app which mixes C++ and qml. I am using qt 5.15.1, targeting android platform.
      The kit uses the Android Debugger (Multi-Abi NDK 21.3.6528147), Qt 5.15 for Android.
      The debugger works perfectly well in Qml, but no way I can make it stop on a breakpoint in the C++ part, even in the first lines of the main.cpp
      Of course, I have checked that both Enable c++ and enable QML checkboxes are ticked in the Run parameters of the project.
      Any idea to solve this is welcomed !

      O Offline
      O Offline
      oliver_mpt
      wrote on last edited by
      #2

      HI,

      I found the solution : the android debugger mentionned above was compiled using the ncurses5 library. In recent ubuntu distribs ncurses6 is installed. The solution is to install ncurses5 along with sudo apt get libncurses5.

      Works perfectly now !

      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