Why the z-index doesn't work on npapi windowed plugin in Qtwebkit.



  • Re: Netscape NPAPI and iframe

    has the problem resolved? I met the same problem. In the webpage I insert a <object> windowed plugin of npapi. the z-index doesn't in use to put other html section above it. I tried it on the firefox, it does work. Why the result is different in Qtwebkit.My Qt verison is 4.8.5. Thx



    • Qt 4.8 is obsolete and not supported anymore, same is true for any QtWebKit version which you can use with Qt 4: QtWebKit 2.2 (4.8) and 2.3. You should upgrade to Qt 5.
    • AFAIU QtWebKit in Qt 5 supports only windowless plugins, so there should not be any z-order issues. There might be glitches when plugin is not hidden when respective view is hidden, so it can e.g. be erroneously displayed on top of different browser tab, please report if you see anything like this, however AFAIU it is not related to original problem


  • thx for your answer, as you say, Qt5 doesn't support any z-index set, but I need to display html sections above my plugin sometimes. How can I realise it? Originally, I use the microsft activex, but z-index order doesn't work.I tried QtactiveX , it still doesn't work, do you have other suggestions?



  • @maoliangwu I don't say it does not support z-index, quite the oppsoite, plugins now don't use windowed mode and should obey rules like other elements do



  • I faced the same problem, and my Qt version is Qt5.5.1. QtWebkit plugin will always be on the top despite z-index in the style property, other objects with higher z-index will be corvered by this plugin.
    Is there any resolution to put the plugin at the bottom of the webview?
    thx



  • @Carry-Hu said in Why the z-index doesn't work on npapi windowed plugin in Qtwebkit.:

    I faced the same problem, and my Qt version is Qt5.5.1. QtWebkit plugin will always be on the top despite z-index in the style property, other objects with higher z-index will be corvered by this plugin.
    Is there any resolution to put the plugin at the bottom of the webview?
    thx

    if you solved this problem,please tell me,thx


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.