<div dir="ltr">Hi,<div><br></div><div>Sorry for my late reply.</div><div><br></div><div>After upgrading PyQt to version 5.7, this problem no longer occurs.</div><div>However, the look'n'feel becomes strange.</div><div><br></div><div>I'm using Ubuntu 16.04 LTS.<br><div class="gmail_extra">In PyQt 5.6, all Qt Widgets have native Ubuntu's look'n'feel.</div><div class="gmail_extra">But after upgrading to version 5.7, their look'n'feel changed.</div><div class="gmail_extra"><br></div><div class="gmail_extra">For example, in PyQt 5.7 the file dialog becomes:</div><div class="gmail_extra"><a href="http://i.imgur.com/veYfvjX.png">http://i.imgur.com/veYfvjX.png</a><br></div><div class="gmail_extra">which is not the native look'n'feel in Ubuntu.</div><div class="gmail_extra"><br></div><div class="gmail_extra">The same problem also occurs on Ubuntu GNOME.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Any ideas?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks for your help.</div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-27 16:32 GMT+08:00 Phil Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com" target="_blank">phil@riverbankcomputing.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On 27 Jul 2016, at 7:18 am, Yu-wen Pwu <<a href="mailto:ywpu@cs.nctu.edu.tw">ywpu@cs.nctu.edu.tw</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I'm writing a program containing a QWebEngineView:<br>
><br>
> import sys<br>
> from PyQt5.QtWidgets import QApplication<br>
> from PyQt5.QtWidgets import QMainWindow<br>
> from PyQt5.QtWebEngineWidgets import QWebEngineView<br>
> from PyQt5.QtCore import QUrl<br>
> def main():<br>
>     app = QApplication(sys.argv)<br>
>     window = QMainWindow()<br>
>     window.setWindowTitle('PyQt Demo')<br>
>     window.setGeometry(320, 180, 960, 540)<br>
>     view = QWebEngineView()<br>
>     view.load(QUrl('<a href="http://leafletjs.com/'" rel="noreferrer" target="_blank">http://leafletjs.com/'</a>))<br>
>     window.setCentralWidget(view)<br>
>     window.show()<br>
>     sys.exit(app.exec_())<br>
> if __name__ == '__main__':<br>
>     main()<br>
><br>
> But I get error messages telling me some files are missing. Finally, I find that by copying everything under /usr/local/lib/python3.5/dist-packages/PyQt5/Qt/resources/ to /usr/local/lib/python3.5/dist-packages/PyQt5/Qt/libexec/ and /usr/local/lib/python3.5/dist-packages/PyQt5/Qt/libexec/qtwebengine_locales/, the program works. (Though it still output some warnings.)<br>
><br>
> See also: <a href="https://gist.github.com/yuwen41200/b57f66b898f23c034afb796e842dbdf6" rel="noreferrer" target="_blank">https://gist.github.com/yuwen41200/b57f66b898f23c034afb796e842dbdf6</a><br>
><br>
> I'm using PyQt5==5.6. Is it a bug in PyQt or other problems in my system?<br>
<br>
</span>Try PyQt v5.7.<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
Phil</font></span></blockquote></div><br><div>--<br></div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Yu-wen Pwu (蒲郁文), Union Liaison<br>Division of Public Relations, NCTU Computer Science Students' Union, Taiwan<br>Website: <a href="http://ywpu.me/" target="_blank">http://ywpu.me/</a>  Email: <a href="mailto:ywpu@cs.nctu.edu.tw" target="_blank">ywpu@cs.nctu.edu.tw</a><br></div></div></div></div></div></div></div></div>
</div></div></div>