On 04/08/2015 06:05 PM, Junior Delaz wrote:
> Ahh indeed, you are right... I should have paid attention to the Class
> in which I found the signal. But I was too obsessed by
> composerWillBeRemoved that I thought I was still in QgisInterface.
> If it can be added to QgisInterface, why not?
https://
Ahh indeed, you are right... I should have paid attention to the Class in
which I found the signal. But I was too obsessed by composerWillBeRemoved
that I thought I was still in QgisInterface.
If it can be added to QgisInterface, why not?
Any idea about my remark on Qt.QueuedConnection and architec
It's in QgisApp but not in QgisInterface.
It is only used internally by the app (in the composermanager for
exactly the same purpose as you are trying to use it for AFAICS).
Anyway, I don't see any reason not to make this available on the public
interface as well...
On 04/07/2015 11:51 PM, Junior
But why does composerRemoved not work? You can find it in the code on
github repo but not on QGIS API website...
2015-04-07 23:35 GMT+02:00 Matthias Kuhn :
> Oops,
>
> That should have been composerWillBeRemoved
>
> Sorry for that...
>
> Matthias
>
>
> On 04/07/2015 10:07 PM, Junior Delaz wrote:
Oops,
That should have been composerWillBeRemoved
Sorry for that...
Matthias
On 04/07/2015 10:07 PM, Junior Delaz wrote:
> Thank you Matthias for your perseverance. It's very helpful and
> encouraging for beginners.
> I have already tried composerRemoved but when loading the plugin, QGIS
> comp
Thank you Matthias for your perseverance. It's very helpful and encouraging
for beginners.
I have already tried composerRemoved but when loading the plugin, QGIS
complains :
Impossible de charger l'extension MapsPrinter provoque une erreur lors de
l'appel de sa méthode initGui()
Traceback (most r
Hi Junior,
The following lines work for a short test-case.
def compAdded( composer ):
print composer
def compRemoved( composer ):
print composer
iface.composerAdded.connect( compAdded )
iface.composerRemoved.connect( compRemoved )
It is possible that the QueuedConnection crashes because al
Hi,
I do understand nothing.
After I read your message, Matthias, I told myself that using QT.
QueuedConnection should be the easiest way. Then i wrote
self.iface.composerWillBeRemoved.connect(self.refreshList,
Qt.QueuedConnection)
But each time i delete a composer, QGIS crashes.
So I've spent the
You should get a parameter containing the composer that is being deleted
with composerWillBeRemoved signal. Try to use that to infer which
composer has been removed. As the signal name indicates, at the time it
is emitted, the composer is not deleted yet.
As an alternative you may make the connecti
Matthias,
Thanks. I just give it a try it and all goes well with composerAdded.
But not really well with composerWillBeRemoved signal. The first deletion
in the composer manager does nothing and deleting a second composer does
remove the first one in my list. and so on...
My update function should
QgisInterface (iface) has a composerAdded and composerWillBeRemoved signal.
Did you try to connect to these?
Best,
Matthias
On 03/31/2015 09:34 AM, Junior wrote:
> Hi all, Luca
> Thanks for answering. But i already have an update function that I
> linked to an update list button. I even linked i
Hi all, Luca
Thanks for answering. But i already have an update function that I linked to an
update list button. I even linked it to the icon on the toolbar so that when
user calls foreground the dialog it's already updated.
The case I'd like to manage: user can open plugin dialog and composer ma
12 matches
Mail list logo