Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Changing Classes with jQuery sometime does not affected.

    Qt WebKit
    1
    2
    947
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sahara108 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);@

      1 Reply Last reply Reply Quote 0
      • S
        sahara108 last edited by

        After research in Qt Docs, I finally found the solution by calling @_myWebView->page()->setContentEditable(true);@

        1 Reply Last reply Reply Quote 0
        • First post
          Last post