Skip to main content
12 events
when toggle format what by license comment
Oct 22, 2018 at 7:21 comment added Matthias Kuhn It's already now possible to work with multiple QgsProject instances side by side. So it is not a singleton by definition, since the constructor is not private. There are still some parts of the internals that use the method QgsProject.instance(). These calls need to be reworked in order to be able to continue the work on an API like you propose.
Oct 21, 2018 at 10:32 comment added Mickey Perlstein i dont understand how moving from using a singleton on one part to a singleton on another part changes the ability to run multiple instances (that anyway recieve the same singleton instance (by definition)... wouldn't it make more sense to have a singleton app that gets running instances ? this would also allow much easier interopability and extensibilty (kind of like microsoft office sdk where you can connect to an existing open instance of office or open a new instance
Oct 14, 2018 at 7:32 comment added Matthias Kuhn @MickeyPerlstein you are right, if you use QgsProject.instance() it's not solved. However, standalone apps can already now be implemented with multiple projects and the QGIS server code is moved in this direction too. In the long run QgsProject.instance() might completely disappear.
Oct 10, 2018 at 16:41 comment added Mickey Perlstein if you use QgsProject.instance() how does that solve the singleton issue?
Jun 26, 2018 at 11:47 history edited Matthias Kuhn CC BY-SA 4.0
added 8 characters in body
Jun 26, 2018 at 11:46 comment added Matthias Kuhn I think you need to give more information why you think the answer is still incomplete.
Jun 26, 2018 at 11:34 comment added Abhijit Gujar i think the answer is still incomplete.
Jun 6, 2018 at 16:09 history edited Matthias Kuhn CC BY-SA 4.0
added 24 characters in body
Jan 3, 2018 at 8:32 history edited Matthias Kuhn CC BY-SA 3.0
deleted 3 characters in body
Jun 19, 2017 at 14:42 history edited Matthias Kuhn CC BY-SA 3.0
edited body
Jun 19, 2017 at 9:45 vote accept tinlyx
Jun 19, 2017 at 7:53 history answered Matthias Kuhn CC BY-SA 3.0