[Interest] Designer: how to preview QWebView with an example .html content?

Alan Ezust alan.ezust at gmail.com
Thu Sep 4 17:27:41 CEST 2014


First, I am coding in PyQt5, so I am using standalone designer instead of
Qt Creator. I was thinking of posting this in PyQt5 but it seems to be more
of a Qt/Designer issue rather than a PyQt issue.

My problem: I want to create wireframes in designer. Some of them have a
QWebView in the middle of my widget showing some sample content.
The sample content, "help.html" is in the same directory as my .ui files.

Problem #1: If I "choose file", it inserts a file://absolute/path/help.html
so preview is broken if I try to preview it from another host.  Why would
anyone ever want an absolute path URL here? Why can't Designer use relative
URLs ?

Problem #2: If I hand-edit the .ui file and put "help.html" and try to
preview it from designer, it's broken too.

Problem #3: If I add the .html file to a resource and give a
"qrc:/help.html" in designer, it lets me choose the resource but preview is
still broken! I think this is a bug that I should report separately.

What should I do?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140904/3bcbbe20/attachment.html>


More information about the Interest mailing list