[Qt-interest] What's the best way to determine online status?
Murphy, Sean M.
sean.murphy at gd-ais.com
Mon Oct 19 21:30:58 CEST 2009
> I don't really know which Qt4 class you should base on. It seems as if
> QGraphicsView is following the concept of the canvas. But there might
> be a better solution which could allow mixing the google-maps view
> from qwebview with graphicsview and all scaled to fit.
> Basically that idea is to draw your custom items by yourself all the
> time and only scale the items or the map to fit when the map is
> available. That way you don't have to send your data to google, have
> only one drawing mechanism to support and could easily extend your app
> to support other maps (like openstreetmap or marble) just by rendering
> different background-images...
So I think you're saying to put a QWebView widget in a QGraphicsScene
via QGraphicsProxyWidget, then draw my own QGraphicsItems over the top
of that widget?
The issues I see there are getting back and forth between what Google
Maps does in the HTML/javascript world and what I need to do in the Qt
one. For me to draw my QGraphicsItems correctly, I've got to know what
the relationship is between QGraphicsScene scene locations and Google
Map latitude/longitude locations. Especially as the user uses the built
in mouse actions in Google Maps (click and drag to pan the map,
double-click to zoom, mousewheel to zoom in/out), I've got to constantly
make sure I'm redrawing the QGraphicsItems over the top correctly so
they match up with the imagery underneath.
I'm not saying it's impossible, but it certainly isn't straightforward.
Sean
More information about the Qt-interest-old
mailing list