[QGIS-Developer] Saving New Map View(s)
ahuarte47 at yahoo.es
Sat Feb 3 01:34:14 PST 2018
Hi, in this experimental QEP  QGIS saves all map views to project file. It saves the full window state of the application. But there is an issue with this , Qt does not provide a method similar to restoreDockWidget()  to restore as better as possible the state of a specific widget (a widget with a map) without change the full window state of the application. Therefore, the loading of a project with non-floating maps may cause that windows previously closed appear, or visible windows disappear.
I hope this helps to decide best solution.
 https://github.com/qgis/QGIS/pull/3465 https://github.com/qgis/QGIS-Enhancement-Proposals/issues/70 http://doc.qt.io/archives/qt-5.8/qmainwindow.html#restoreDockWidget
De: Richard Duivenvoorde <rdmailings at duif.net>
Para: Paolo Cavallini <cavallini at faunalia.it>; qgis-developer at lists.osgeo.org
Enviado: Sábado 3 de febrero de 2018 10:23
Asunto: Re: [QGIS-Developer] Saving New Map View(s)
On 03-02-18 09:38, Paolo Cavallini wrote:
> Il 03/02/2018 00:44, Nyall Dawson ha scritto:
>> No, you're correct. Closing the view deletes it and removes it from
>> the project. What would you suggest happens here?
> IMHO this ends up in erasign user data without warning, which is a
> serious bug. A warning before closing could suffice.
Yes, I agree: only warn the user 'if you close this view, it will not be
saved in your project' or something like that.
The alternative: 'remembering closes/invisible views' in the project
file is doomed to give problems I think. It is like an old bug we had
earlier: removing layers from the layers list still had the providers in
the project file, so you saw your project firing requests to wms's which
you deleted earlier as file ...
QGIS-Developer mailing list
QGIS-Developer at lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the QGIS-Developer