Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. Changing Classes with jQuery sometime does not affected.
QtWS25 Last Chance

Changing Classes with jQuery sometime does not affected.

Scheduled Pinned Locked Moved Qt WebKit
2 Posts 1 Posters 1.1k Views
  • 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 Offline
    S Offline
    sahara108
    wrote on last edited by
    #1

    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
    0
    • S Offline
      S Offline
      sahara108
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved