<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hi,<br>
    <br>
    After an update of QtWebKit on ArchLinux, I've a strange behaviour
    with<br>
    the QWebView.<br>
    <br>
    When I set an url, only the basename of the url is setted and
    nothing<br>
    appears in the viewer.<br>
    <br>
    On Ubuntu 10.04 no problem, works fine:<br>
    <br>
    vincent@tiemoko:~/Qmap$ python map.py <br>
    QtWebKit vers:  532.4<br>
    Url: 
    PyQt4.QtCore.QUrl(u'<a class="moz-txt-link-freetext" href="file:///home/vincent/Qmap/OSmapViewer.html">file:///home/vincent/Qmap/OSmapViewer.html</a>')<br>
    <br>
    <br>
    On ArchLinux updated with qtwebkit 2.2.1-2 x86_64:<br>
    <br>
    [vincent@myhost Qmap]$ python2 map.py<br>
    QtWebKit vers:  534.34<br>
    Url:  PyQt4.QtCore.QUrl(u'<a class="moz-txt-link-freetext" href="file:///home/vincent/Qmap">file:///home/vincent/Qmap</a>')<br>
    <br>
    =====================================================<br>
    # -*- coding: utf-8 -*-<br>
    <br>
    import sys<br>
    <br>
    from PyQt4 import QtCore, QtGui, QtWebKit<br>
    print "QtWebKit vers: ", QtWebKit.qWebKitVersion()<br>
    <br>
    class MiniView(object):<br>
        def setupUi(self, MainWindow):<br>
            MainWindow.resize(400, 300)<br>
            self.centralwidget = QtGui.QWidget(MainWindow)<br>
            self.gridLayout = QtGui.QGridLayout(self.centralwidget)<br>
            self.webView = QtWebKit.QWebView(self.centralwidget)<br>
            self.gridLayout.addWidget(self.webView, 0, 0, 1, 1)<br>
            MainWindow.setCentralWidget(self.centralwidget)<br>
            MainWindow.show()<br>
            QtCore.QCoreApplication.processEvents()<br>
    <br>
            self.page = QtWebKit.QWebPage()<br>
            self.webView.setPage(self.page)<br>
            <br>
            self.osm_url =
    QtCore.QUrl("/home/vincent/Qmap/OSmapViewer.html")<br>
            self.webView.setUrl(self.osm_url)<br>
            print "Url: ", self.webView.url()<br>
    <br>
    if __name__ == "__main__":<br>
        app = QtGui.QApplication(sys.argv)<br>
        MainWindow = QtGui.QMainWindow()<br>
        ui = MiniView()<br>
        ui.setupUi(MainWindow)<br>
        sys.exit(app.exec_())<br>
    ===========================================================<br>
    <br>
    Thanks for all advices.<br>
    <div class="moz-signature">-- <br>
      Vincent V.V.<br>
      <a href="https://launchpad.net/oqapy">Oqapy</a> . <a
        href="https://launchpad.net/qarte+7">Qarte+7</a> . <a
        href="https://launchpad.net/paqager">PaQager</a></div>
  </body>
</html>