Thanks for your response, Giuseppe.
Here's the patch.
https://github.com/qgis/Quantum-GIS/pull/350
Regards,
Matthias
On 12/10/2012 11:16 PM, Giuseppe Sucameli wrote:
Hi Matthias,
On Mon, Dec 10, 2012 at 5:14 PM, Matthias Kuhn <[email protected]> wrote:
Hi Giuseppe,
I recently wanted to use QgsMessageBar, thank you for providing it, it's a
great tool to provide non-obtrusive messages.
please let's move this kind of discussion in ML, there're
other people/devs could be interested in it.
I wanted to create a message on the fly within a python plugin and then
forget about it (createMessage / pushWidget )
But as soon, as the python method got out of scope, the object has been
deleted by python.
Do you have any plans on how to deal with such a situation?
Sure, but not in the near future (see below).
I would propose to put /Transfer/ to pushWidget (sip definition) and then
delete the object from C++ (in case it's parent is the messagebar).
I have an adapted branch here which you could have a look at in case you
think this proposal makes sense.
I've no time in this moment to look at your patch, too much
things to do and very few time... but if you open a pull
request other devs can give their opinions on your patch and
if it sounds good they can merge it.
Regards.
Regards,
Matthias
_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer