Receiving custom Mavlink messages in QGC

Hi, I am trying to get the custom Mavlink messages from PX4 to the QGC Android app using the QGC source code. The app is displaying the default messages correctly but not the custom messages. Here’s what I have done:

  1. I already have the custom.xml which is working fine using pymavlink, so I built the MAVLink libraries using the Mavgenerate GUI which contains the c files and uploaded the custom folder to qt to libs/mavlink/include/mavlink/v2.0

  2. I included custom.h in all.h where all the default xmls are included:

#include “…/ardupilotmega/ardupilotmega.h”
#include “…/ASLUAV/ASLUAV.h”
#include “…/common/common.h”
#include “…/development/development.h”
#include “…/icarous/icarous.h”
#include “…/minimal/minimal.h”
#include “…/python_array_test/python_array_test.h”
#include “…/standard/standard.h”
#include “…/test/test.h”
#include “…/ualberta/ualberta.h”
#include “…/uAvionix/uAvionix.h”
#include “…/storm32/storm32.h”
#include “…/AVSSUAS/AVSSUAS.h”
#include “…/cubepilot/cubepilot.h”
#include “…/csAirLink/csAirLink.h”
#include “…/custom/custom.h”

  1. I also added the custom.xml file inside message_definitions folder

After I re-run and built the application, it does not seem to work (I cannot receive custom messages using QCDebug). I check the firmware and protocol cc files but didn’t really see anything to update. Can anyone give some pointers for the next steps? Thank you in advance!