Can anyone explain the best way to setup Whisper, whisper targets and the shortcut programmatically in C++?

Also, can anyone explain how to create a QVariant for a ShortcutTarget? See
void MainWindow::on_gsWhisper_triggered(bool down, QVariant scdata)

Thank you in advance,
Aglets