September 18, 2009

Non-selectable QWebView

There are situations where you don’t want text to be selected and images to be dragged in your QWebView (See my previous post). Qt does not provide support out of the box, but this is fairly straightforward to do. I wrote a quick hack to demonstrate, get it here.

2 Responses to “Non-selectable QWebView”

  1. Kenneth Christiansen says:

    The QWebGraphicsItem actually has a setInteractive() :-)

  2. JoWenn says:

    I haven’t tried it! I guess if you don’t want the browser drag/select but have elements with JavaScript based dnd this won’t work either

Leave a comment



(unmoderated)

    (or)    


(moderated, email will not be published)