There is a tool for inspecting Qt apps - GammaRay from KDAB
It can be very convenient to investigate QQuickItems hierarchy in the app.
Steps to build it (inside cloned src folder):
mkdir build
cd build
cmake -DCMAKE_PREFIX_PATH=PATH_TO_YOUR_QT_FOLDER/5.11.2/gcc_64/lib/cmake ..
make
make install
After build gammaray binary can be found in GAMMARAY_PATH/build/bin
- Start
gammaray - Open
Attachtab ingammarayUI - Set
Access modecombo box toOut-of-process, local debugging only - Start your
react-native-desktopapplication - Wait until it is listed in processes on gammaray
Attachscreen - Press
Attachbutton - Wait until
gammarayattached - Select
Quick scenestab and inspect QQuickItems hierarchy in your app
If you get a error on attaching gammaray to app, here is what can be done:
-
edit
/etc/sysctl.d/10-ptrace.confand change the line:kernel.yama.ptrace_scope = 1Tokernel.yama.ptrace_scope = 0 -
To apply changes call
sudo service procps restart