[Qgis-developer] QgsMessageBar
Giuseppe Sucameli
brush.tyler at gmail.com
Mon Dec 10 14:16:32 PST 2012
Hi Matthias,
On Mon, Dec 10, 2012 at 5:14 PM, Matthias Kuhn <matthias.kuhn at gmx.ch> 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
--
Giuseppe Sucameli
More information about the Qgis-developer
mailing list