To open file , doc, pdf , url , xml, ecc...
i found this method .... on win32..
/* function preview html result ...*/
bool is;
/*file_put_contents(BROWSER_PAGE_2,TidyXHTML(bridge_real_tag));*/
is = file_put_contents(BROWSER_PAGE_1,bridge_real_tag); /* path/index.html */
if (is) {
#if defined(Q_WS_WIN)
s << "url.dll,FileProtocolHandler" << BROWSER_PAGE_1;
p.
startDetached(QString("rundll32.exe") , s
);
#endif
#if defined( Q_WS_MACX )
/* ............ */
#endif
#if defined( Q_WS_X11 )
/* ............ */
#endif
}
/* function preview html result ...*/
bool is;
/*file_put_contents(BROWSER_PAGE_2,TidyXHTML(bridge_real_tag));*/
is = file_put_contents(BROWSER_PAGE_1,bridge_real_tag); /* path/index.html */
if (is) {
QProcess p;
#if defined(Q_WS_WIN)
QStringList s;
s << "url.dll,FileProtocolHandler" << BROWSER_PAGE_1;
p.startDetached(QString("rundll32.exe") , s );
#endif
#if defined( Q_WS_MACX )
/* ............ */
#endif
#if defined( Q_WS_X11 )
/* ............ */
#endif
}
To copy to clipboard, switch view to plain text mode
and on mac anybody know a similar function? or hack?
Bookmarks