I suggest you have a hidden role that will tell you the type of each argument of each command and simply have a component that will build widgets according to the information stored in the model. The functionality will be close to what property browsers offer only that the visual representation will be different.

Take a look at this:
http://doc.trolltech.com/qq/qq13-attributes.html