My Qt application should open a html page (with the default browser eg. IE). This html code is stored in a QString.
What would be the best way to open this “file”, of which I only have the content?
Is QTemporaryFile the answer to this? Or could this be done easier?
QString content = "<html>...</html>";
?
QDesktopServices::openUrl(QUrl("..."));
The QTemporaryFile approach is by far the easiest to accomplish your task.
I don’t see any other way other then doing some “vodoo” with ActiveQt, if that works at all.
Best regards.
EDIT: An example