On Wed, Feb 4, 2015 at 11:35 PM, Richard Duivenvoorde <[email protected]> wrote:
> On 04-02-15 17:23, Martin Dobias wrote: > > > Looks like QApplication instance was not created, so all places where > > events are needed will fail (e.g. for postgres there is a connection > > pool which releases connections after some time). Something like this > > should be added to the top: > > > > import sys > > app = QApplication(sys.argv) > > Hi Martin, > > Thanks for your answer. > > the actual script I was testing was this one (which has this stuff): > > http://pastebin.com/MWdMzmTW In that script I still can't see creation of QApplication that I mentioned above. Please note that there are two different things here: - QApplication - object that initializes Qt library - QgsApplication - has static methods to initialize qgis libraries Cheers Martin
_______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
