But I want to use it in my PyQt4 based widget and I'm facing fatal problem:
it randomly, very often ends with segmentation fault.
Sometimes right after call to control.start(), otherwise when on_changed() callback is called.
I think it must be in different event loop handling.
Does anyone know how it should be done in Qt?
Something similar to gobject.idle_add(start_location, control) ?
I've tried python location gobject-style example and it works fine on N900:
http://wiki.maemo.org/PyMaemo/Using_Location_API
But I want to use it in my PyQt4 based widget and I'm facing fatal problem:
it randomly, very often ends with segmentation fault.
Sometimes right after call to control.start(), otherwise when on_changed() callback is called.
I think it must be in different event loop handling.
Does anyone know how it should be done in Qt?
Something similar to gobject.idle_add(start_location, control) ?