Writting a custom widget to qgc

Dear all,

i want to write a custom widget from control a camera gimbel and option.
i already understand that i need qml for visual creating and c++ for behind writting.

how can i start to write it, tried to download a custom plugin from autbrain, but i have a lot of trouble to compile it with qt.