[Marble-devel] QGraphicsView Overlay for marble
inge at lysator.liu.se
Mon Mar 23 10:05:51 CET 2009
On Sunday 22 March 2009 19:06:55 Andrew Manson wrote:
> hi everyone,
> like i said in my last email I've given the QGraphics stuff a quick
> go... and i think its been quite successful! I've attached a diff just
> to show it in action but mind you this is just a HACK! this is not
> intended to be put into production!!
> the reason I'm sending this around is because i am just looking for
> ideas on where to put it... ( in the code i mean! i know it belongs in a
> branch, so it can't do any damage ;) ) I reckon that i should make it
> into a plugin but i don't really know how. The only thing that this
> requires is that it has access to the MarbleWidget so that it can set it
> as a parent and get information from its methods and slots.
> Any ideas?
This may be an interesting development, although I think that you would have
to add some geo features into the graphics view as well to make it
interesting. Things like "move this item to a geo position" instead of to
just pixel coordinates and things like that.
However, there is a big no-no in the code. You should not put private members
into the MarbleWidget class. That's what the MarbleWidgetPrivate class is
for. If you do, you will destroy binary compatibility.
More information about the Marble-devel