I couldn\'t use custom type in Q_PROPERTY MEMBER.
header.h
class Custom { Q_GADGET Q_PROPERTY(int mode MEMBER mode STORED true) public: Custom(