Hello once more, a few days ago I tried to get some feedback regarding my problem with the 4.5 line of QT and Webkit. Unfortunately nodbody responded. I was hoping somebody would copy the example code into some file and try for themself.
This is now my second try :-) . I attached the two files and also included them
below as text, so it's really just copy and paste.
My software is pretty much based on Google Maps/Webkit and the alternate views
(satellite etc.), so this is a real problem for me
even though I can easily go back to 4.4 as I'm not using 4.5 features yet.
Maybe it's just my problem. But I tried it now under a 64bit Suse11.0 (my
computer) and a two other Suse11.1 one 32 bit and one
64 bit.
It would already help if somebody (from QtSoftware, whoever) says, it doesn't
happen on their system. To me it looks like
a Javascript problem, whatelse could it be? IMO the example below is so simple
that I shouldn't cause all the trouble myself.
Just running the compiled example against 4.4 libs works, against 4.5 doesn't.
Any help, ideas are appreciated. :-)
Michael
the main.cpp:
-----------------------
#include <QtGui/QtGui>
#include <QtWebKit/QWebView>
int main (int argc, char** argv){
QApplication app(argc, argv);
QWebView* wv = new QWebView;
wv->load(QUrl("http://maps.google.de"));
wv->show();
app.exec();
return 0;
}
-----------------------
a minimal .pro file:
-------------------------------
TEMPLATE = app
TARGET = wk-test
SOURCES += main.cpp
CONFIG += qt
QT += webkit
-------------------------
> I just found a problem with the current 4.5.1 (and 4.5) release of Qt,
> actually with Webkit.
>
> example: e.g. main.cpp
>
> #include <QtGui/QtGui>
> #include <QtWebKit/QWebView>
>
> int main (int argc, char** argv){
> QApplication app(argc, argv);
> QWebView* wv = new QWebView;
> wv->load(QUrl("http://maps.google.de"));
> wv->show();
> app.exec();
> return 0;
> }
>
> The satellite, hybrid, and physical views don't work anymore. In version
> 4.4.1 and .3 it still worked.
> I don't know whether this relates to some Javascript problems (Google Maps
> seams to think it has the wrong
> zoomlevel and can't display tiles at that level) or something else.
> Maybe sombody can look into that or declare it as not Qt's fault.
>
> What do you guys think ?
>
>
>
> Michael
>
>
>
--
wk-test.pro
Description: application/vnd.nokia.qt.qmakeprofile
#include <QtGui/QtGui>
#include <QtWebKit/QWebView>
int main (int argc, char** argv){
QApplication app(argc, argv);
QWebView* wv = new QWebView;
wv->load(QUrl("http://maps.google.de"));
wv->show();
app.exec();
return 0;
}
_______________________________________________ Qt4-preview-feedback mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt4-preview-feedback
