At the end of this post it explains how to use "frame flattening" to expand iframes to the size of their content:
QWebSettings::globalSettings()->setAttribute(QWebSettings::FrameFlatteningEnable, true); (tags: c++ web example tutorial programming)
Another way to resize iframes automatically (tags: web programming tutorial example)
iframe security trickery (tags: web programming javascript tutorial example)