You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to close the current project and open a new project in my python plugin with help of following code:
QgsProject.instance().clear()
QgsProject.instance().setFileName('d:/shashank/test/second.xml.qgs')
QgsProject.instance().read()
The above throws up a blank screen. The code works fine in python console but it does not work inside my plugin.
Looks like cleanup issues with python binding.
-Shashank
The text was updated successfully, but these errors were encountered:
this seems more like a question rather than a issue report. Please check with the devs in the developers mailing list or #qgis irc channel, then eventually reopen this ticket.
resolution was changed from to invalid
status_id was changed from Open to Closed
qgib
added
the
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
label
May 25, 2019
Author Name: Shashank khare (Shashank khare)
Original Redmine Issue: 12140
Affected QGIS version: 2.6.0
Hi!
I am trying to close the current project and open a new project in my python plugin with help of following code:
QgsProject.instance().clear()
QgsProject.instance().setFileName('d:/shashank/test/second.xml.qgs')
QgsProject.instance().read()
The above throws up a blank screen. The code works fine in python console but it does not work inside my plugin.
Looks like cleanup issues with python binding.
-Shashank
The text was updated successfully, but these errors were encountered: