Changing Classes with jQuery sometime does not affected.
-
wrote on 9 Apr 2013, 13:51 last edited by
Hi,
Following this thread "http://stackoverflow.com/questions/195951/change-an-elements-css-class-with-javascript":http://stackoverflow.com/questions/195951/change-an-elements-css-class-with-javascript, I use javascript frameworks and libraries in Peter Boughton answer to change some elements class. It works perfectly in web browser but not for QWebview. It does not apply new change. If I include @[removed][removed]
<html debug="true">
[removed]
[script]
{
overrideConsole: false,
startInNewWindow: true,
startOpened: true,
enableTrace: true
}
[/script]@
to enable fire bug inside application, it will apply the changes.
Does anyone know how to fix this?
I am using Qt 5.0.1. Here is the settings of my webview:
@ui._webView->settings()->setAttribute( QWebSettings::AutoLoadImages, true );@
@ui._WebView->setContextMenuPolicy(Qt::CustomContextMenu);@ -
wrote on 10 Apr 2013, 11:55 last edited by
After research in Qt Docs, I finally found the solution by calling @_myWebView->page()->setContentEditable(true);@
1/2