It seems that this can be achieved in only two lines (provided that the flash drive is installed on the target system, of course):
QWebSettings *settings = QWebSettings::globalSettings(); settings->setAttribute (QWebSettings::PluginsEnabled, true);
source share