Hello, using qwevview.
If i load image from web (for example http://www.google.com) i can see image on site,
but if i load local site (file://...) i can not see image on my local site, i dont understand why. Execute this project on two OS (MAC and PC), mac project is work, PC not work.
The code:
QWebView *view;
view = new QWebView(this);
if (MAC)
{
view
->load
(QUrl("file://" + path.
left(i
) + "iWeb/Pages/index_MAC.html"));
}
else
{
view
->load
(QUrl(path.
left(i
).
replace(QRegExp("/"),
"\\\\") + "iWeb\\\\Pages\\\\index_PC.html"));
}
view->show();
QWebView *view;
view = new QWebView(this);
if (MAC)
{
view->load(QUrl("file://" + path.left(i) + "iWeb/Pages/index_MAC.html"));
}
else
{
view->load(QUrl(path.left(i).replace(QRegExp("/"),"\\\\") + "iWeb\\\\Pages\\\\index_PC.html"));
}
view->show();
To copy to clipboard, switch view to plain text mode
Bookmarks