You can expose QObject properties, slots and signals in the QtWebKit browser scripting environment using The QtWebKit Bridge. Qt Assistant uses this browser component but you would have to make a modified version of Assistant in order to plug in and expose your functionality. (Not sure if the compiled docs support JavaScript at all though)

Why does documentation need to know about files outside the docs?