[Qt-interest] QMacNativeWidget + QWebView issues

Diez B. Roggisch diez.roggisch at ableton.com
Wed Jan 26 17:15:41 CET 2011


(Sorry if this appears twice, I did something wrong with subscribing to the 
list)

Hi all,

I'm currently dabbling with embedding a QWebView inside a native Cocoa 
application via QMacNativeWidget.

Most things seem to work fine, I can browse and even run youtube videos.

However, I currently have to issues:

 - the view doesn't support to drag and drop. When using a "native" Qt app on 
OSX (fancybrowser), it works. So it seems there is something wrong with 
propagation of drag and drop events themselves. 

Related to this subject is that the result of the drag-and-drop operation is 
different from Safari's implementation, but I guess that's another topic.

 - flash mouse events are... strange. I can interact with an embedded flash-
player (youtube), but e.g. the play/pause button only responses if I do

 * click it (nothing happens)
 * focus e.g. a input-element on the same page I put there for other reasons
 * type somethging in the field

So it seems events are somehow "stuck".

My application already calls 

 QApplication::setAttribute(Qt::AA_MacPluginApplication)
 qt_mac_set_native_menubar(false)
 QWebSettings::globalSettings()-
>setAttribute(QWebSettings::JavascriptCanAccessClipboard, true)


I also invoked setAcceptDrops(true) on both the native widget, and the webview 
widget.

Any pointers that help with this are appreciated!

Diez
	



More information about the Qt-interest-old mailing list