ID 334788 - The QTWebEngineWidgets.QWebEngineView only appears to work in Windows and not on Linux

Follow

Problem summary
QTWebEngineWidgets.QWebEngineView only works on Windows. On Linux, no text is present.

Customer reported version
nuke.11.1v2

Customer reported platform
ubuntu

Steps to reproduce

1) Launch Nuke 11.1v2 and open up the script editor. (Shift+f4)

2) Paste the following code into your script editor: 

from PySide2 import QtWebEngineWidgetsweb_view = QtWebEngineWidgets.QWebEngineView()web_view.setHtml('<h1>Hello World!</h1>')web_view.show()
3) Depending on your operating system one of three things will happen. 


Workaround
A potential workaround is to add the Nuke root folder to LD_LIBRARY_PATH.

Reproduced by support
This bug has been reproduced in:
Nuke 11.1v2 - CentOS 7 - MacOSX 10.13

Unable to reproduce bug in:
Nuke 11.1v2 - Windows 7

Earliest version tested
Nuke11.1v2 - CentOS 7 - MacOSX 10.13 - Windows 7
-This feature did not exist before this version

Expected behaviour
A QT WebEngine dialog box will appear and print the "Hello world" command.

Actual behaviour
Based on the operating system the below issues occur:
 
Linux CentOS 7.4: An empty dialog box appears. 
 
 
Windows: Works as intended and will print the script. 



MacOSX: Prints an error stating that Nuke cannot import name "QtWebEngineWidgets". This is expected behavior as the QtWebEngine has not been implemented in the Mac Release. For more information please see our Knowledge Base article : Q100379: Importing PySide2.QtWebEngine into Nuke 11.





​​

    We're sorry to hear that

    Please tell us why