How to write some text on QWebView
Hi,
I am using QWEBVIEW class to display adobe plugins. I would like to display some text on this QWebview window.
I tried to use QLabel and making this as a child of QWebView. My text is visible initially but as soon as QWebView starts drawing
my text is getting overlapped by webview contents. I tried to override paintEvent() as well, but same behavior.
5 replies
There are two types of flash plugins.
1) Windowless
2) Windowed
I am able to display my QLabel on windowless kind of plugin , but in case of windowed I am not able to.
Actually In case of windoless plugin Adobe dll takes the dc of the QWebView but in case of Windowed it takes the HWND of the QWebView. Might be by taking QWebView it is having full control on drwaing.
Anyways thanks for your guess….
Any workaround to get rid out of this problem.?????????
Start timer for 40ms, in timeout slot get DC from MainWindow, get rect of flash widget and draw what you need… It was working for me under WindowsMobile, should work in Windows to… on linux you can also draw directly in frame buffer…
Havn’t used QGraphicsWebview, but “Graphics” do they drawing in other way as simple QWidgets?! or not… it’s just a guess…
You must log in to post a reply. Not a member yet? Register here!


